Write 100 times for tomorrow:

"Always print time_t as %jd, you never know what width it has"
This commit is contained in:
Poul-Henning Kamp 2004-01-22 19:50:06 +00:00
parent 39edba076e
commit ee57aeea65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124842

View File

@ -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);
}
}