From: Miroslav Lichvar Date: Fri, 16 Sep 2016 08:13:08 +0000 (+0200) Subject: refclock: use UTI_TimespecToString() in debug message X-Git-Tag: 3.0-pre1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c5de8dcb0388d843f2e46c529f482bb2d5a557a;p=thirdparty%2Fchrony.git refclock: use UTI_TimespecToString() in debug message --- diff --git a/refclock_pps.c b/refclock_pps.c index e06d8db4..79016de1 100644 --- a/refclock_pps.c +++ b/refclock_pps.c @@ -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; }