summaryrefslogtreecommitdiff
path: root/src/network/network.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-08 21:14:49 +0000
committerrubidium <rubidium@openttd.org>2010-04-08 21:14:49 +0000
commitd8baa1342c4ddce823724b758c5b3e4547e84e90 (patch)
treea8877f3db63d8d7c5d9a7dbee7f4a0943e8ab785 /src/network/network.cpp
parent9ad86b776fcb04242fda1203ca126bbb68ff2829 (diff)
downloadopenttd-d8baa1342c4ddce823724b758c5b3e4547e84e90.tar.xz
(svn r19589) -Change: add some more useful information to the desync log and unify the formatting
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r--src/network/network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index b591e0ecd..73548d2b1 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -249,7 +249,7 @@ void NetworkTextMessage(NetworkAction action, ConsoleColour colour, bool self_se
SetDParam(2, data);
GetString(message, strid, lastof(message));
- DEBUG(desync, 1, "msg: %d; %d; %s\n", _date, _date_fract, message);
+ DEBUG(desync, 1, "msg: %08x; %02x; %s", _date, _date_fract, message);
IConsolePrintF(colour, "%s", message);
NetworkAddChatMessage((TextColour)colour, duration, "%s", message);
}
@@ -1024,7 +1024,7 @@ static bool NetworkDoClientLoop()
if (_sync_seed_1 != _random.state[0]) {
#endif
NetworkError(STR_NETWORK_ERROR_DESYNC);
- DEBUG(desync, 1, "sync_err: %d; %d\n", _date, _date_fract);
+ DEBUG(desync, 1, "sync_err: %08x; %02x", _date, _date_fract);
DEBUG(net, 0, "Sync error detected!");
NetworkClientError(NETWORK_RECV_STATUS_DESYNC, NetworkClientSocket::Get(0));
return false;