ntp: improve debug messages with port number

This commit is contained in:
Miroslav Lichvar
2019-07-18 11:33:13 +02:00
parent 47e4cb31b2
commit d78680912e
2 changed files with 5 additions and 9 deletions

View File

@@ -433,8 +433,7 @@ NIO_SendPacket(NTP_Packet *packet, NTP_Remote_Address *remote_addr,
assert(initialised);
if (local_addr->sock_fd == INVALID_SOCK_FD) {
DEBUG_LOG("No socket to send to %s:%d",
UTI_IPToString(&remote_addr->ip_addr), remote_addr->port);
DEBUG_LOG("No socket to send to %s", UTI_IPSockAddrToString(remote_addr));
return 0;
}