summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-10 13:23:23 +0000
committersmatz <smatz@openttd.org>2009-05-10 13:23:23 +0000
commitd4971a22d0b68405345e543893469eb9ed399796 (patch)
tree460e47b2c173c8f67bc799613d6c1cb58a3b7b69 /src
parent96dace426bcccc9254b57eb3a8618217054a4df3 (diff)
downloadopenttd-d4971a22d0b68405345e543893469eb9ed399796.tar.xz
(svn r16265) -Fix (r16238): wrong format string for debug output
Diffstat (limited to 'src')
-rw-r--r--src/network/core/address.cpp2
-rw-r--r--src/network/network_udp.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp
index ecf7e2e1a..09ea55419 100644
--- a/src/network/core/address.cpp
+++ b/src/network/core/address.cpp
@@ -308,7 +308,7 @@ static SOCKET ListenLoopProc(addrinfo *runp)
}
if (runp->ai_socktype != SOCK_DGRAM && listen(sock, 1) != 0) {
- DEBUG(net, 1, "[%s] could not listen at % port %s: %s", type, family, address, strerror(errno));
+ DEBUG(net, 1, "[%s] could not listen at %s port %s: %s", type, family, address, strerror(errno));
closesocket(sock);
return INVALID_SOCKET;
}
diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp
index 59fbd7dc6..54b24e6b7 100644
--- a/src/network/network_udp.cpp
+++ b/src/network/network_udp.cpp
@@ -507,8 +507,8 @@ void NetworkUDPAdvertiseThread(void *pntr)
DEBUG(net, 0, "[udp] advertising to the master server is failing");
DEBUG(net, 0, "[udp] we are not receiving the acknowledgement from the server");
DEBUG(net, 0, "[udp] this usually means that the master server cannot reach us");
- DEBUG(net, 0, "[udp] please allow udp and tcp packets to port %s to be delivered", _settings_client.network.server_port);
- DEBUG(net, 0, "[udp] please allow udp and tcp packets from port %s to be delivered", _settings_client.network.server_port);
+ DEBUG(net, 0, "[udp] please allow udp and tcp packets to port %u to be delivered", _settings_client.network.server_port);
+ DEBUG(net, 0, "[udp] please allow udp and tcp packets from port %u to be delivered", _settings_client.network.server_port);
}
/* Send the packet */