summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_message.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-03-12 01:58:16 +0100
committerDavid Lamparter <equinox@diac24.net>2021-03-14 22:56:07 +0100
commit5145a172619a80d4aa504c32132c37b6336adb5a (patch)
tree6483f2f6b26b2eb6d243277ea18ccb80240b3c3e /ospf6d/ospf6_message.c
parenta0ee6f322414a3f15e5abf05466ddbe4fa6712a2 (diff)
*: fix printf extension types
Some mistakes have crept in again. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ospf6d/ospf6_message.c')
-rw-r--r--ospf6d/ospf6_message.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c
index 6f6e2e1589..160f012d78 100644
--- a/ospf6d/ospf6_message.c
+++ b/ospf6d/ospf6_message.c
@@ -116,7 +116,7 @@ void ospf6_hello_print(struct ospf6_header *oh)
for (p = (char *)((caddr_t)hello + sizeof(struct ospf6_hello));
p + sizeof(uint32_t) <= OSPF6_MESSAGE_END(oh);
p += sizeof(uint32_t))
- zlog_debug(" Neighbor: %pI4", p);
+ zlog_debug(" Neighbor: %pI4", (in_addr_t *)p);
assert(p == OSPF6_MESSAGE_END(oh));
}
@@ -1578,8 +1578,8 @@ int ospf6_receive(struct thread *thread)
zlog_debug("%s received on %s",
lookup_msg(ospf6_message_type_str, oh->type, NULL),
oi->interface->name);
- zlog_debug(" src: %pI4", &src);
- zlog_debug(" dst: %pI4", &dst);
+ zlog_debug(" src: %pI6", &src);
+ zlog_debug(" dst: %pI6", &dst);
switch (oh->type) {
case OSPF6_MESSAGE_TYPE_HELLO:
@@ -1663,7 +1663,7 @@ static void ospf6_send(struct in6_addr *src, struct in6_addr *dst,
lookup_msg(ospf6_message_type_str, oh->type, NULL),
oi->interface->name);
zlog_debug(" src: %s", srcname);
- zlog_debug(" dst: %pI4", dst);
+ zlog_debug(" dst: %pI6", dst);
switch (oh->type) {
case OSPF6_MESSAGE_TYPE_HELLO: