diff options
author | phk <phk@FreeBSD.org> | 2004-01-22 19:50:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-01-22 19:50:06 +0000 |
commit | 4e1a716219bd370af96027b62cdce715f04153cb (patch) | |
tree | a138b0015c96c377743e385d43408edaaa9cfedc | |
parent | 74d800d7d0417d49b6abd3cbf7040e2a5c76ac4e (diff) | |
download | FreeBSD-src-4e1a716219bd370af96027b62cdce715f04153cb.zip FreeBSD-src-4e1a716219bd370af96027b62cdce715f04153cb.tar.gz |
Write 100 times for tomorrow:
"Always print time_t as %jd, you never know what width it has"
-rw-r--r-- | sys/kern/kern_tc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index 15ad255..55dda34 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -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); } } |