diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-09-22 10:17:49 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-09-22 12:12:11 +0200 |
commit | c4f64ea94df36395889ca88c50fd198ce95bc73d (patch) | |
tree | e40b1a7fdf830a47ab702cfc39f4d35b62c2921a /bgpd/bgp_debug.c | |
parent | Merge pull request #11986 from opensourcerouting/fix/drop_outdated_files (diff) | |
download | frr-c4f64ea94df36395889ca88c50fd198ce95bc73d.tar.xz frr-c4f64ea94df36395889ca88c50fd198ce95bc73d.zip |
bgpd: Use %pRD for prefix_rd2str()
Convert a bunch of prefix_rd2str() for json/vty stuff.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r-- | bgpd/bgp_debug.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index d0ab88ee1..864cdb51a 100644 --- a/bgpd/bgp_debug.c +++ b/bgpd/bgp_debug.c @@ -2662,7 +2662,6 @@ const char *bgp_debug_rdpfxpath2str(afi_t afi, safi_t safi, struct bgp_route_evpn *overlay_index, char *str, int size) { - char rd_buf[RD_ADDRSTRLEN]; char tag_buf[30]; char overlay_index_buf[INET6_ADDRSTRLEN + 14]; const struct prefix_evpn *evp; @@ -2720,8 +2719,7 @@ const char *bgp_debug_rdpfxpath2str(afi_t afi, safi_t safi, } if (prd) - snprintfrr(str, size, "RD %s %pFX%s%s%s %s %s", - prefix_rd2str(prd, rd_buf, sizeof(rd_buf)), pu.p, + snprintfrr(str, size, "RD %pRD %pFX%s%s%s %s %s", prd, pu.p, overlay_index_buf, tag_buf, pathid_buf, afi2str(afi), safi2str(safi)); else if (safi == SAFI_FLOWSPEC) { |