This diff fixes two compiler warnings when compiling with DEBUG define.

ok?


Index: timer.c
===================================================================
RCS file: /home/obsdcvs/src/usr.sbin/snmpd/timer.c,v
retrieving revision 1.5
diff -u -p -r1.5 timer.c
--- timer.c     27 Aug 2016 01:50:07 -0000      1.5
+++ timer.c     23 Sep 2016 19:23:22 -0000
@@ -70,7 +70,7 @@ 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 %llu%% idle in %llus", n,
                    (cptime2[CP_IDLE] > 1000 ?
                    1000 : (cptime2[CP_IDLE] / 10)), tv.tv_sec);
 #endif

Reply via email to