]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: print offset and delay in debug messages in nanosecond resolution
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 9 Nov 2016 16:33:03 +0000 (17:33 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Nov 2016 14:26:56 +0000 (15:26 +0100)
ntp_core.c

index 455ebfe72e35df6e90b7bdbed687d0e3db820d3f..b92e0e1577588a0f5e5ee5eee68635ebd170289a 100644 (file)
@@ -1487,7 +1487,7 @@ receive_packet(NCR_Instance inst, NTP_Local_Address *local_addr,
             UTI_Ntp64ToString(&message->originate_ts),
             UTI_Ntp64ToString(&message->receive_ts),
             UTI_Ntp64ToString(&message->transmit_ts));
-  DEBUG_LOG(LOGF_NtpCore, "offset=%f delay=%f dispersion=%f root_delay=%f root_dispersion=%f",
+  DEBUG_LOG(LOGF_NtpCore, "offset=%.9f delay=%.9f dispersion=%f root_delay=%f root_dispersion=%f",
             offset, delay, dispersion, root_delay, root_dispersion);
   DEBUG_LOG(LOGF_NtpCore, "test123=%d%d%d test567=%d%d%d testABCD=%d%d%d%d kod_rate=%d interleaved=%d valid=%d good=%d updated=%d",
             test1, test2, test3, test5, test6, test7, testA, testB, testC, testD,