From c36230e21b6bae22f984f5ffec4d1f476a595fa9 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 13 Oct 2014 13:28:45 +0200 Subject: [PATCH] ntp: print number of bytes sent in debug message --- ntp_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_io.c b/ntp_io.c index a582807..15dab96 100644 --- a/ntp_io.c +++ b/ntp_io.c @@ -620,7 +620,7 @@ send_packet(void *packet, int packetlen, NTP_Remote_Address *remote_addr, NTP_Lo return 0; } - DEBUG_LOG(LOGF_NtpIO, "Sent to %s:%d from %s fd %d", + DEBUG_LOG(LOGF_NtpIO, "Sent %d bytes to %s:%d from %s fd %d", packetlen, UTI_IPToString(&remote_addr->ip_addr), remote_addr->port, UTI_IPToString(&local_addr->ip_addr), local_addr->sock_fd);