From 4d3e679b04f94ba69103c919abcd4c8156123c1f Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 11 Apr 2024 13:15:21 +0300 Subject: [PATCH] bgpd: Use snprintfrr() to print PRIu64 for ipv6_ecommunity_lb_str() Signed-off-by: Donatas Abraitis --- bgpd/bgp_ecommunity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index ac3bc09e9f..be8f56637e 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -1069,9 +1069,9 @@ static int ipv6_ecommunity_lb_str(char *buf, size_t bufsz, const uint8_t *pnt) snprintf(bps_buf, sizeof(bps_buf), "%.3f Kbps", (float)(bw / ONE_KBPS_BYTES)); else - snprintf(bps_buf, sizeof(bps_buf), "%" PRIu64 " bps", bw * 8); + snprintfrr(bps_buf, sizeof(bps_buf), "%" PRIu64 " bps", bw * 8); - len = snprintf(buf, bufsz, "LB:%u:%" PRIu64 " (%s)", as, bw, bps_buf); + len = snprintfrr(buf, bufsz, "LB:%u:%" PRIu64 " (%s)", as, bw, bps_buf); return len; } -- 2.39.5