summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_updgrp_packet.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-12-11 10:44:38 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-12-11 10:44:38 +0100
commitadf086ec581e25adc8e70375046f7ffb7ac94e4f (patch)
treedae6c2fe45dbcc4de70a4652d1681fe9acd71e37 /bgpd/bgp_updgrp_packet.c
parentbgpd: Print afi/safi as strings when handling capability in zlog_debug (diff)
downloadfrr-adf086ec581e25adc8e70375046f7ffb7ac94e4f.tar.xz
frr-adf086ec581e25adc8e70375046f7ffb7ac94e4f.zip
bgpd: Print afi/safi as strings when handling update/withdraw in zlog_debug
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_updgrp_packet.c')
-rw-r--r--bgpd/bgp_updgrp_packet.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/bgpd/bgp_updgrp_packet.c b/bgpd/bgp_updgrp_packet.c
index c3edb9e9a..ec80aa422 100644
--- a/bgpd/bgp_updgrp_packet.c
+++ b/bgpd/bgp_updgrp_packet.c
@@ -888,9 +888,12 @@ struct bpacket *subgroup_update_packet(struct update_subgroup *subgrp)
pkt_afi = afi_int2iana(afi);
pkt_safi = safi_int2iana(safi);
zlog_debug(
- "u%" PRIu64 ":s%" PRIu64" send MP_REACH for afi/safi %d/%d",
+ "u%" PRIu64 ":s%" PRIu64
+ " send MP_REACH for afi/safi %s/%s",
subgrp->update_group->id,
- subgrp->id, pkt_afi, pkt_safi);
+ subgrp->id,
+ iana_afi2str(pkt_afi),
+ iana_safi2str(pkt_safi));
}
send_attr_printed = 1;
@@ -1046,9 +1049,12 @@ struct bpacket *subgroup_withdraw_packet(struct update_subgroup *subgrp)
if (bgp_debug_update(NULL, NULL,
subgrp->update_group, 0))
zlog_debug(
- "u%" PRIu64 ":s%" PRIu64" send MP_UNREACH for afi/safi %d/%d",
+ "u%" PRIu64 ":s%" PRIu64
+ " send MP_UNREACH for afi/safi %s/%s",
subgrp->update_group->id,
- subgrp->id, pkt_afi, pkt_safi);
+ subgrp->id,
+ iana_afi2str(pkt_afi),
+ iana_safi2str(pkt_safi));
}
bgp_packet_mpunreach_prefix(s, dest_p, afi, safi, prd,