projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.verplant.org/collectd
[collectd.git]
/
src
/
snmp.c
diff --git
a/src/snmp.c
b/src/snmp.c
index
0561257
..
07465dd
100644
(file)
--- a/
src/snmp.c
+++ b/
src/snmp.c
@@
-708,14
+708,14
@@
static value_t csnmp_value_list_to_value (struct variable_list *vl, int type,
|| (vl->type == ASN_GAUGE))
{
temp = (uint32_t) *vl->val.integer;
|| (vl->type == ASN_GAUGE))
{
temp = (uint32_t) *vl->val.integer;
- DEBUG ("snmp plugin: Parsed int32 value is %
llu
.", temp);
+ DEBUG ("snmp plugin: Parsed int32 value is %
"PRIu64"
.", temp);
}
else if (vl->type == ASN_COUNTER64)
{
temp = (uint32_t) vl->val.counter64->high;
temp = temp << 32;
temp += (uint32_t) vl->val.counter64->low;
}
else if (vl->type == ASN_COUNTER64)
{
temp = (uint32_t) vl->val.counter64->high;
temp = temp << 32;
temp += (uint32_t) vl->val.counter64->low;
- DEBUG ("snmp plugin: Parsed int64 value is %
llu
.", temp);
+ DEBUG ("snmp plugin: Parsed int64 value is %
"PRIu64"
.", temp);
}
else if (vl->type == ASN_OCTET_STR)
{
}
else if (vl->type == ASN_OCTET_STR)
{
@@
-1424,8
+1424,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 %
l
u seconds.",
- host->name, host->interval, (unsigned
long)
(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);