From: Florian Forster Date: Mon, 14 Jul 2008 17:38:11 +0000 (+0200) Subject: snmp plugin: More format string fixes. X-Git-Tag: collectd-4.4.2~1^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0fb6fc95c1046e3febf6482d9be8895dc6fd29d0;p=collectd.git snmp plugin: More format string fixes. --- 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);