Write 100 times for tomorrow:
"Always print time_t as %jd, you never know what width it has"
This commit is contained in:
parent
39edba076e
commit
ee57aeea65
@ -360,8 +360,9 @@ tc_setclock(struct timespec *ts)
|
||||
tc_windup();
|
||||
if (timestepwarnings) {
|
||||
bintime2timespec(&bt2, &ts2);
|
||||
log(LOG_INFO, "Time stepped from %d.%09ld to %d.%09ld\n",
|
||||
ts2.tv_sec, ts2.tv_nsec, ts->tv_sec, ts->tv_nsec);
|
||||
log(LOG_INFO, "Time stepped from %jd.%09ld to %jd.%09ld\n",
|
||||
(intmax_t)ts2.tv_sec, ts2.tv_nsec,
|
||||
(intmax_t)ts->tv_sec, ts->tv_nsec);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user