summaryrefslogtreecommitdiff
path: root/pimd/pim_tlv.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2020-03-27 13:14:37 +0100
committerDavid Lamparter <equinox@diac24.net>2020-03-29 10:45:46 +0200
commit566bdaf68cb41de3884726efc15376a79b3325b5 (patch)
tree4d9e4ca6639bcf5684416e5e50c993d38339a8fe /pimd/pim_tlv.c
parent07ef3e34ae0a414cefed99488abcbc167a9c0f3d (diff)
*: fix format string warnings
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'pimd/pim_tlv.c')
-rw-r--r--pimd/pim_tlv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pimd/pim_tlv.c b/pimd/pim_tlv.c
index 5a751ac929..881a3e332a 100644
--- a/pimd/pim_tlv.c
+++ b/pimd/pim_tlv.c
@@ -473,7 +473,7 @@ int pim_parse_addr_ucast(struct prefix *p, const uint8_t *buf, int buf_size)
case PIM_MSG_ADDRESS_FAMILY_IPV4:
if ((addr + sizeof(struct in_addr)) > pastend) {
zlog_warn(
- "%s: IPv4 unicast address overflow: left=%zd needed=%zu",
+ "%s: IPv4 unicast address overflow: left=%td needed=%zu",
__func__, pastend - addr,
sizeof(struct in_addr));
return -3;
@@ -489,7 +489,7 @@ int pim_parse_addr_ucast(struct prefix *p, const uint8_t *buf, int buf_size)
case PIM_MSG_ADDRESS_FAMILY_IPV6:
if ((addr + sizeof(struct in6_addr)) > pastend) {
zlog_warn(
- "%s: IPv6 unicast address overflow: left=%zd needed %zu",
+ "%s: IPv6 unicast address overflow: left=%td needed %zu",
__func__, pastend - addr,
sizeof(struct in6_addr));
return -3;
@@ -548,7 +548,7 @@ int pim_parse_addr_group(struct prefix_sg *sg, const uint8_t *buf, int buf_size)
if ((addr + sizeof(struct in_addr)) > pastend) {
zlog_warn(
- "%s: IPv4 group address overflow: left=%zd needed=%zu from",
+ "%s: IPv4 group address overflow: left=%td needed=%zu from",
__func__, pastend - addr,
sizeof(struct in_addr));
return -3;
@@ -607,7 +607,7 @@ int pim_parse_addr_source(struct prefix_sg *sg, uint8_t *flags,
case PIM_MSG_ADDRESS_FAMILY_IPV4:
if ((addr + sizeof(struct in_addr)) > pastend) {
zlog_warn(
- "%s: IPv4 source address overflow: left=%zd needed=%zu",
+ "%s: IPv4 source address overflow: left=%td needed=%zu",
__func__, pastend - addr,
sizeof(struct in_addr));
return -3;