projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40783e8
)
snmp plugin: Fix a format string.
author
Florian Forster
<octo@huhu.verplant.org>
Wed, 24 Mar 2010 15:37:53 +0000
(16:37 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Wed, 24 Mar 2010 15:38:31 +0000
(16:38 +0100)
src/snmp.c
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
00df377
..
fee2f6d
100644
(file)
--- a/
src/snmp.c
+++ b/
src/snmp.c
@@
-1127,7
+1127,7
@@
static int csnmp_dispatch_table (host_definition_t *host, data_definition_t *dat
char temp[DATA_MAX_NAME_LEN];
if (instance_list_ptr == NULL)
- ssnprintf (temp, sizeof (temp), "%
u"
, (uint32_t) subid);
+ ssnprintf (temp, sizeof (temp), "%
"PRIu32
, (uint32_t) subid);
else
sstrncpy (temp, instance_list_ptr->instance, sizeof (temp));