summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_tc.c5
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);
}
}
OpenPOWER on IntegriCloud