From: Pat Ruddy Date: Fri, 25 Jun 2021 09:16:01 +0000 (+0100) Subject: ospf6d: remove inet_ntop calls in ospf6_write X-Git-Tag: base_8.1~344^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=779d972213803647ebed8f71b32ed7a12a2477aa;p=mirror%2Ffrr.git ospf6d: remove inet_ntop calls in ospf6_write substitute pI6 formatter. Signed-off-by: Pat Ruddy --- diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c index 7faec0d490..3ebefb5bc5 100644 --- a/ospf6d/ospf6_message.c +++ b/ospf6d/ospf6_message.c @@ -1890,7 +1890,6 @@ static int ospf6_write(struct thread *thread) struct ospf6_header *oh; struct ospf6_packet *op; struct listnode *node; - char srcname[64], dstname[64]; struct iovec iovector[2]; int pkt_count = 0; int len; @@ -1928,15 +1927,12 @@ static int ospf6_write(struct thread *thread) "Could not send entire message"); if (IS_OSPF6_DEBUG_MESSAGE(oh->type, SEND_HDR)) { - inet_ntop(AF_INET6, &op->dst, dstname, sizeof(dstname)); - inet_ntop(AF_INET6, oi->linklocal_addr, srcname, - sizeof(srcname)); zlog_debug("%s send on %s", lookup_msg(ospf6_message_type_str, oh->type, NULL), oi->interface->name); - zlog_debug(" src: %s", srcname); - zlog_debug(" dst: %s", dstname); + zlog_debug(" src: %pI6", oi->linklocal_addr); + zlog_debug(" dst: %pI6", &op->dst); switch (oh->type) { case OSPF6_MESSAGE_TYPE_HELLO: ospf6_hello_print(oh, OSPF6_ACTION_SEND);