From: Florian Forster Date: Wed, 24 Mar 2010 15:37:53 +0000 (+0100) Subject: snmp plugin: Fix a format string. X-Git-Tag: collectd-4.8.4~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6d41ea6a5dcba424d7c7658c6eeccc1ea0d8a0f2;p=collectd.git snmp plugin: Fix a format string. --- diff --git a/src/snmp.c b/src/snmp.c index 00df3779..fee2f6d5 100644 --- 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));