From: Donald Sharp Date: Fri, 16 Dec 2022 14:32:44 +0000 (-0500) Subject: bgpd: Print out useful information about peer X-Git-Tag: base_8.5~133^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F12536%2Fhead;p=mirror%2Ffrr.git bgpd: Print out useful information about peer I am seeing this output: 2022/12/16 09:16:00.206 BGP: [MNE5N-K0G4Z] Resetting peer (null) due to change in addpath config Switch over to %pBP Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_addpath.c b/bgpd/bgp_addpath.c index 9784943b4c..461e60dbfc 100644 --- a/bgpd/bgp_addpath.c +++ b/bgpd/bgp_addpath.c @@ -406,9 +406,9 @@ void bgp_addpath_set_peer_type(struct peer *peer, afi_t afi, safi_t safi, } } - zlog_info("Resetting peer %s%s due to change in addpath config", + zlog_info("Resetting peer %s%pBP due to change in addpath config", CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP) ? "group " : "", - peer->host); + peer); if (CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP)) { group = peer->group;