Commit b60c915c authored by Adam Wujek's avatar Adam Wujek 💬

proto-ext-whiterabbit: print leading zeros in timestamps

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent c0a3c95b
......@@ -57,7 +57,7 @@ void wr_servo_enable_tracking(int enable)
static void dump_timestamp(struct pp_instance *ppi, char *what,
struct pp_time ts)
{
pp_diag(ppi, servo, 2, "%s = %ld:%ld:%ld\n", what, (long)ts.secs,
pp_diag(ppi, servo, 2, "%s = %ld:%09ld:%03ld\n", what, (long)ts.secs,
(long)(ts.scaled_nsecs >> 16),
/* unlikely what we had earlier, third field is not phase */
((long)(ts.scaled_nsecs & 0xffff) * 1000 + 0x8000) >> 16);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment