mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 01:19:11 +00:00
(svn r16265) -Fix (r16238): wrong format string for debug output
This commit is contained in:
@@ -308,7 +308,7 @@ static SOCKET ListenLoopProc(addrinfo *runp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (runp->ai_socktype != SOCK_DGRAM && listen(sock, 1) != 0) {
|
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);
|
closesocket(sock);
|
||||||
return INVALID_SOCKET;
|
return INVALID_SOCKET;
|
||||||
}
|
}
|
||||||
|
@@ -507,8 +507,8 @@ void NetworkUDPAdvertiseThread(void *pntr)
|
|||||||
DEBUG(net, 0, "[udp] advertising to the master server is failing");
|
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] 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] 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 to port %u 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 from port %u to be delivered", _settings_client.network.server_port);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send the packet */
|
/* Send the packet */
|
||||||
|
Reference in New Issue
Block a user