]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: print number of bytes sent in debug message
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 13 Oct 2014 11:28:45 +0000 (13:28 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 13 Oct 2014 13:10:15 +0000 (15:10 +0200)
ntp_io.c

index a5828073dd26a770510be377da895d7472da734b..15dab9694fc8fbeacf4b97fcc932747a9239c634 100644 (file)
--- 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);