]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: remove debug messages in slew handler
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 17 Oct 2014 13:20:59 +0000 (15:20 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 20 Oct 2014 10:22:17 +0000 (12:22 +0200)
ntp_core.c

index 71135037b5556e90e2c059de031af28c4c93cd1c..214ea72f585e50b7f1fb7572cc38829265348a91 100644 (file)
@@ -1585,18 +1585,12 @@ NCR_ProcessUnknown
 void
 NCR_SlewTimes(NCR_Instance inst, struct timeval *when, double dfreq, double doffset)
 {
-  struct timeval prev;
   double delta;
-  prev = inst->local_rx;
+
   if (inst->local_rx.tv_sec || inst->local_rx.tv_usec)
     UTI_AdjustTimeval(&inst->local_rx, when, &inst->local_rx, &delta, dfreq, doffset);
-  DEBUG_LOG(LOGF_NtpCore, "rx prev=[%s] new=[%s]",
-      UTI_TimevalToString(&prev), UTI_TimevalToString(&inst->local_rx));
-  prev = inst->local_tx;
   if (inst->local_tx.tv_sec || inst->local_tx.tv_usec)
     UTI_AdjustTimeval(&inst->local_tx, when, &inst->local_tx, &delta, dfreq, doffset);
-  DEBUG_LOG(LOGF_NtpCore, "tx prev=[%s] new=[%s]",
-      UTI_TimevalToString(&prev), UTI_TimevalToString(&inst->local_tx));
 }
 
 /* ================================================== */