summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-10-22 18:34:03 -0400
committerGitHub <noreply@github.com>2020-10-22 18:34:03 -0400
commitcc1107bf59ab88f7f19bfefb540d3b5cc63df3f3 (patch)
tree5668fee8d9932aa5cd2015380ed9943ede8b2b21 /lib/if.c
parent582e9e0098d88985ff9fe116f8bddaa5f89eea32 (diff)
parentaf3b34f6903d395d30795ab2b6feee6530d2f783 (diff)
Merge pull request #7340 from ton31337/fix/inet_ntoa_to_pI4_lib
lib: Convert inet_ntoa to %pI4
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/if.c b/lib/if.c
index 35aa46ca2d..c707c4c6d9 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -1106,8 +1106,8 @@ ifaddr_ipv4_add (struct in_addr *ifaddr, struct interface *ifp)
if (rn)
{
route_unlock_node (rn);
- zlog_info ("ifaddr_ipv4_add(): address %s is already added",
- inet_ntoa (*ifaddr));
+ zlog_info("ifaddr_ipv4_add(): address %pI4 is already added",
+ ifaddr);
return;
}
rn->info = ifp;
@@ -1126,8 +1126,7 @@ ifaddr_ipv4_delete (struct in_addr *ifaddr, struct interface *ifp)
rn = route_node_lookup (ifaddr_ipv4_table, (struct prefix *) &p);
if (! rn)
{
- zlog_info ("ifaddr_ipv4_delete(): can't find address %s",
- inet_ntoa (*ifaddr));
+ zlog_info("%s: can't find address %pI4", __func__, ifaddr);
return;
}
rn->info = NULL;