diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-10-22 10:01:20 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-10-22 10:13:56 -0400 | 
| commit | ee2bbf7ce20616e09f45b8b2f13e6fcba921c57d (patch) | |
| tree | 7895f00a1be28c63c30377264abde11f7a8f8c4d /pimd/pim_zebra.c | |
| parent | 84de5a245a3eb17619588a535b9f408ce802a8c9 (diff) | |
pimd: replace inet_ntoa
Replace all use of inet_ntoa, using %pI4 or inet_ntoa instead
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'pimd/pim_zebra.c')
| -rw-r--r-- | pimd/pim_zebra.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index 52bfab9a33..f0eae955cc 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -98,8 +98,8 @@ static void dump_if_address(struct interface *ifp)  		if (p->family != AF_INET)  			continue; -		zlog_debug("%s %s: interface %s address %s %s", __FILE__, -			   __func__, ifp->name, inet_ntoa(p->u.prefix4), +		zlog_debug("%s %s: interface %s address %pI4 %s", __FILE__, +			   __func__, ifp->name, &p->u.prefix4,  			   CHECK_FLAG(ifc->flags, ZEBRA_IFA_SECONDARY)  				   ? "secondary"  				   : "primary"); @@ -837,9 +837,9 @@ void pim_forward_start(struct pim_ifchannel *ch)  			       sizeof(group_str));  		pim_inet4_dump("<upstream?>", up->upstream_addr, upstream_str,  			       sizeof(upstream_str)); -		zlog_debug("%s: (S,G)=(%s,%s) oif=%s (%s)", __func__, +		zlog_debug("%s: (S,G)=(%s,%s) oif=%s (%pI4)", __func__,  			   source_str, group_str, ch->interface->name, -			   inet_ntoa(up->upstream_addr)); +			   &up->upstream_addr);  	}  	if (PIM_IF_FLAG_TEST_PROTO_IGMP(ch->flags))  | 
