From 0663329f6f760560039a3eba880b6ac17b6188c1 Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 23 Aug 2003 08:31:32 +0000 Subject: On ia64 time_t is 64 bit. Explicitly cast tv_sec to long and change the corresponding format specifier to %ld in a call to printf() in function softclock(). The printf() is conditional upon DIAGNOSTIC. Found by: LINT --- sys/kern/kern_timeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/kern_timeout.c') diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index a32764a..c0f9c89 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -231,9 +231,9 @@ softclock(void *dummy) maxdt = bt2.frac; bintime2timespec(&bt2, &ts2); printf( - "Expensive timeout(9) function: %p(%p) %d.%09ld s\n", + "Expensive timeout(9) function: %p(%p) %ld.%09ld s\n", c_func, c_arg, - ts2.tv_sec, ts2.tv_nsec); + (long)ts2.tv_sec, ts2.tv_nsec); } #endif if (!(c_flags & CALLOUT_MPSAFE)) -- cgit v1.1