1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

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
This commit is contained in:
Marcel Moolenaar 2003-08-23 08:31:32 +00:00
parent 8d8b9c6e70
commit 38bf4e9667
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119358

View File

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