projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
33cef6a
)
snmp plugin: More format string fixes.
author
Florian Forster
<octo@noris.net>
Mon, 14 Jul 2008 17:38:11 +0000
(19:38 +0200)
committer
Florian Forster
<octo@noris.net>
Mon, 14 Jul 2008 17:38:11 +0000
(19:38 +0200)
src/snmp.c
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
1824611
..
460624b
100644
(file)
--- 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 "
if (vb == NULL)
{
ERROR ("snmp plugin: host %s: Expected one more variable for "
- "the instance..");
+ "the instance.."
, host->name
);
return (-1);
}
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, "
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);
}
return (0);