]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
refclock: use UTI_TimespecToString() in debug message
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 16 Sep 2016 08:13:08 +0000 (10:13 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 26 Sep 2016 10:40:43 +0000 (12:40 +0200)
refclock_pps.c

index e06d8db47789f7e30fe7da528383c97f5e52ec34..79016de1249e817be41f7291c4cfe600ea720545 100644 (file)
@@ -146,8 +146,8 @@ static int pps_poll(RCL_Instance instance)
   }
 
   if (seq == pps->last_seq || UTI_IsZeroTimespec(&ts)) {
-    DEBUG_LOG(LOGF_Refclock, "PPS sample ignored seq=%lu ts=%lu.%09lu",
-        seq, ts.tv_sec, ts.tv_nsec);
+    DEBUG_LOG(LOGF_Refclock, "PPS sample ignored seq=%lu ts=%s",
+              seq, UTI_TimespecToString(&ts));
     return 0;
   }