refclock: use UTI_TimespecToString() in debug message

This commit is contained in:
Miroslav Lichvar 2016-09-16 10:13:08 +02:00
parent c8373f1649
commit 6c5de8dcb0

View 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;
}