From 0fb6fc95c1046e3febf6482d9be8895dc6fd29d0 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 14 Jul 2008 19:38:11 +0200 Subject: [PATCH] snmp plugin: More format string fixes. --- src/snmp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/snmp.c b/src/snmp.c index 18246112..460624b4 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -779,7 +779,7 @@ static int csnmp_check_res_left_subtree (const host_definition_t *host, if (vb == NULL) { ERROR ("snmp plugin: host %s: Expected one more variable for " - "the instance.."); + "the instance..", host->name); return (-1); } @@ -1400,8 +1400,8 @@ static int csnmp_read_host (host_definition_t *host) if ((time_end - time_start) > host->interval) { WARNING ("snmp plugin: Host `%s' should be queried every %i seconds, " - "but reading all values takes %i seconds.", - host->name, host->interval, time_end - time_start); + "but reading all values takes %u seconds.", + host->name, host->interval, (unsigned int) (time_end - time_start)); } return (0); -- 2.30.2