From e1af3f16b1a0aabbfd661ba0ac2c7a919585320b Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Sat, 28 Oct 2017 15:04:49 -0400 Subject: [PATCH] bgpd: add afi/safi to debug output Signed-off-by: Lou Berger --- bgpd/bgp_debug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index 1fb930fdef..6e16d5f45b 100644 --- a/bgpd/bgp_debug.c +++ b/bgpd/bgp_debug.c @@ -2048,14 +2048,14 @@ const char *bgp_debug_rdpfxpath2str(afi_t afi, safi_t safi, } if (prd) - snprintf(str, size, "RD %s %s%s%s", + snprintf(str, size, "RD %s %s%s%s %s %s", prefix_rd2str(prd, rd_buf, sizeof(rd_buf)), prefix2str(pu, pfx_buf, sizeof(pfx_buf)), tag_buf, - pathid_buf); + pathid_buf, afi2str(afi), safi2str(safi)); else - snprintf(str, size, "%s%s%s", + snprintf(str, size, "%s%s%s %s %s", prefix2str(pu, pfx_buf, sizeof(pfx_buf)), tag_buf, - pathid_buf); + pathid_buf, afi2str(afi), safi2str(safi)); return str; } -- 2.39.5