summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d1cf372)
raw | patch | inline | side by side (parent: d1cf372)
author | Florian Forster <octo@collectd.org> | |
Thu, 3 Dec 2015 06:17:15 +0000 (07:17 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 3 Dec 2015 06:17:15 +0000 (07:17 +0100) |
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index 23aefd51fe02d6e3b964b22bc2ac8f1ef732be0a..0717365a9694de0c402dbe7f12dfae8ff705431e 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
src = (char *) vb->val.bitstring;
else if (vb->type == ASN_IPADDRESS)
{
- return ssnprintf (dst, dst_size, "%d.%d.%d.%d",
- (uint8_t)vb->val.string[0],
- (uint8_t)vb->val.string[1],
- (uint8_t)vb->val.string[2],
- (uint8_t)vb->val.string[3]);
+ return ssnprintf (dst, dst_size, "%"PRIu8".%"PRIu8".%"PRIu8".%"PRIu8"",
+ (uint8_t) vb->val.string[0],
+ (uint8_t) vb->val.string[1],
+ (uint8_t) vb->val.string[2],
+ (uint8_t) vb->val.string[3]);
}
else
{