Commit 848add07 authored by Maciej Lipinski's avatar Maciej Lipinski

Update format of timestamp printf to be more readable and user-friendly

parent 0c77342d
......@@ -248,7 +248,7 @@ static int scan_stamp(int argc, char **argv, int ismask)
return -1;
}
for (i = 0; i < cmd->nstamp; i++)
printf("ch %i, %9li.%09li, leap second 0x%04X, leap second valid %01x, flag59 %01x, flag61 %01x \n", cmd->channel,
printf("ch %i, %9li.%09li (leap second: value=%d, valid=%01x, flag59=%01x, flag61=%01x) \n", cmd->channel,
(long)cmd->t[i].tv_sec, cmd->t[i].tv_nsec, cmd->wr_ts_info_buf[i].leap_second, cmd->wr_ts_info_buf[i].leap_second_valid,
cmd->wr_ts_info_buf[i].flag59, cmd->wr_ts_info_buf[i].flag61);
}
......
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