diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-05 19:12:12 +0100 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-17 14:10:57 +0100 | 
| commit | 8e8be741b59cb339c946efbc0790466db7dae2e1 (patch) | |
| tree | bf49c41ef1559d441263dabb81fd292e7e5dd0c8 /pimd/pim_assert.c | |
| parent | bca160c6af499365a946d5b86f9cc71cbc948869 (diff) | |
pimd: replace pim_inet4_dump with `%pPAs`
Only pim_sgaddr uses are covered by this since regular in_addr is still
used for singular addresses, so only a part of pim_inet4_dump calls are
gone with this.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_assert.c')
| -rw-r--r-- | pimd/pim_assert.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/pimd/pim_assert.c b/pimd/pim_assert.c index 79b46994aa..3c38ebd76b 100644 --- a/pimd/pim_assert.c +++ b/pimd/pim_assert.c @@ -287,15 +287,13 @@ int pim_assert_recv(struct interface *ifp, struct pim_neighbor *neigh,  	if (PIM_DEBUG_PIM_TRACE) {  		char neigh_str[INET_ADDRSTRLEN];  		char source_str[INET_ADDRSTRLEN]; -		char group_str[INET_ADDRSTRLEN];  		pim_inet4_dump("<neigh?>", src_addr, neigh_str,  			       sizeof(neigh_str));  		pim_inet4_dump("<src?>", msg_source_addr.u.prefix4, source_str,  			       sizeof(source_str)); -		pim_inet4_dump("<grp?>", sg.grp, group_str, sizeof(group_str));  		zlog_debug( -			"%s: from %s on %s: (S,G)=(%s,%s) pref=%u metric=%u rpt_bit=%u", -			__func__, neigh_str, ifp->name, source_str, group_str, +			"%s: from %s on %s: (S,G)=(%s,%pPAs) pref=%u metric=%u rpt_bit=%u", +			__func__, neigh_str, ifp->name, source_str, &sg.grp,  			msg_metric.metric_preference, msg_metric.route_metric,  			PIM_FORCE_BOOLEAN(msg_metric.rpt_bit_flag));  	}  | 
