From: Donatas Abraitis Date: Fri, 11 Dec 2020 09:41:30 +0000 (+0200) Subject: bgpd: Print afi/safi as strings when handling capability in zlog_debug X-Git-Tag: base_7.6~130^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c386cdd8c9edce48e359cc84b4021185b9a3800d;p=mirror%2Ffrr.git bgpd: Print afi/safi as strings when handling capability in zlog_debug Signed-off-by: Donatas Abraitis --- diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index cf7a265b11..dfc64c043b 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -2219,12 +2219,13 @@ static int bgp_capability_msg_parse(struct peer *peer, uint8_t *pnt, /* Address family check. */ if (bgp_debug_neighbor_events(peer)) zlog_debug( - "%s CAPABILITY has %s MP_EXT CAP for afi/safi: %u/%u", + "%s CAPABILITY has %s MP_EXT CAP for afi/safi: %s/%s", peer->host, action == CAPABILITY_ACTION_SET ? "Advertising" : "Removing", - pkt_afi, pkt_safi); + iana_afi2str(pkt_afi), + iana_safi2str(pkt_safi)); if (action == CAPABILITY_ACTION_SET) { peer->afc_recv[afi][safi] = 1;