summaryrefslogtreecommitdiff
path: root/zebra/connected.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-10-22 18:39:04 -0400
committerGitHub <noreply@github.com>2020-10-22 18:39:04 -0400
commitb7f49e15a2fea2cb1676c921a5e68f974f9c3f33 (patch)
tree5ce62762bb16b2f2a6d983f860f6b4c4f63e44e8 /zebra/connected.c
parentcc1107bf59ab88f7f19bfefb540d3b5cc63df3f3 (diff)
parentd0b0a2c545c2960df768e86a0bdb2e78610efc86 (diff)
Merge pull request #7358 from mjstapp/fix_ntoa
ospfd, zebra: Replace use of inet_ntoa
Diffstat (limited to 'zebra/connected.c')
-rw-r--r--zebra/connected.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/connected.c b/zebra/connected.c
index cd42b5b250..6a1efc3e65 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -308,8 +308,8 @@ void connected_add_ipv4(struct interface *ifp, int flags, struct in_addr *addr,
if (IPV4_ADDR_SAME(addr, dest))
flog_warn(
EC_ZEBRA_IFACE_SAME_LOCAL_AS_PEER,
- "warning: interface %s has same local and peer address %s, routing protocols may malfunction",
- ifp->name, inet_ntoa(*addr));
+ "warning: interface %s has same local and peer address %pI4, routing protocols may malfunction",
+ ifp->name, addr);
} else {
zlog_debug(
"warning: %s called for interface %s with peer flag set, but no peer address supplied",
@@ -322,8 +322,8 @@ void connected_add_ipv4(struct interface *ifp, int flags, struct in_addr *addr,
if (!dest && (prefixlen == IPV4_MAX_PREFIXLEN)
&& if_is_pointopoint(ifp))
zlog_debug(
- "warning: PtP interface %s with addr %s/%d needs a peer address",
- ifp->name, inet_ntoa(*addr), prefixlen);
+ "warning: PtP interface %s with addr %pI4/%d needs a peer address",
+ ifp->name, addr, prefixlen);
/* Label of this address. */
if (label)