diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-23 08:31:32 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-23 08:31:32 +0000 |
commit | 0663329f6f760560039a3eba880b6ac17b6188c1 (patch) | |
tree | 8fca8ee3d0b9e86dcb848a910107825ef9b3222d /sys | |
parent | 06fbefe190e0ae8a0c89a80fbd6c80183f7e06e1 (diff) | |
download | FreeBSD-src-0663329f6f760560039a3eba880b6ac17b6188c1.zip FreeBSD-src-0663329f6f760560039a3eba880b6ac17b6188c1.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_timeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |