diff options
author | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2016-09-26 14:00:06 +0000 |
---|---|---|
committer | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2016-09-26 14:00:06 +0000 |
commit | 12f27d83adb1e944f84e96431ef21eb6a9147bf7 (patch) | |
tree | affc5407f3916e5e18c12b27317666b779c18803 /usr.sbin | |
parent | c0efd236cf4c01cf3c63eca3f86bbabadcf8a725 (diff) |
Fix compilation warning by using the correct cast/format.
improved by sthen@
ok reyk@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/snmpd/timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/timer.c b/usr.sbin/snmpd/timer.c index ab4670c1431..f7865d4cdbd 100644 --- a/usr.sbin/snmpd/timer.c +++ b/usr.sbin/snmpd/timer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: timer.c,v 1.5 2016/08/27 01:50:07 guenther Exp $ */ +/* $OpenBSD: timer.c,v 1.6 2016/09/26 14:00:05 rzalamena Exp $ */ /* * Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org> @@ -70,9 +70,9 @@ timer_cpu(int fd, short event, void *arg) (void)percentages(CPUSTATES, cptime2, cp_time[n], cp_old[n], cp_diff[n]); #ifdef DEBUG - log_debug("timer_cpu: cpu%d %d%% idle in %ds", n, + log_debug("timer_cpu: cpu%d %lld%% idle in %llds", n, (cptime2[CP_IDLE] > 1000 ? - 1000 : (cptime2[CP_IDLE] / 10)), tv.tv_sec); + 1000 : (cptime2[CP_IDLE] / 10)), (long long) tv.tv_sec); #endif } |