diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-03-10 16:03:22 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2021-03-14 22:56:07 +0100 |
commit | 6dd43a35f3683a695e825961c2398c5427aa9928 (patch) | |
tree | 0c55113db180f1e84152ad3ba8f38723a245033f /sharpd | |
parent | Merge pull request #8244 from opensourcerouting/ci-fix-tests (diff) | |
download | frr-6dd43a35f3683a695e825961c2398c5427aa9928.tar.xz frr-6dd43a35f3683a695e825961c2398c5427aa9928.zip |
sharpd: Convert over to using builtin printf functionality
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'sharpd')
-rw-r--r-- | sharpd/sharp_zebra.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index fed732b84..0095aed54 100644 --- a/sharpd/sharp_zebra.c +++ b/sharpd/sharp_zebra.c @@ -638,7 +638,6 @@ void sharp_zebra_nexthop_watch(struct prefix *p, vrf_id_t vrf_id, bool import, static int sharp_debug_nexthops(struct zapi_route *api) { int i; - char buf[PREFIX_STRLEN]; if (api->nexthop_num == 0) { zlog_debug( @@ -653,20 +652,16 @@ static int sharp_debug_nexthops(struct zapi_route *api) case NEXTHOP_TYPE_IPV4_IFINDEX: case NEXTHOP_TYPE_IPV4: zlog_debug( - " Nexthop %s, type: %d, ifindex: %d, vrf: %d, label_num: %d", - inet_ntop(AF_INET, &znh->gate.ipv4.s_addr, buf, - sizeof(buf)), - znh->type, znh->ifindex, znh->vrf_id, - znh->label_num); + " Nexthop %pI4, type: %d, ifindex: %d, vrf: %d, label_num: %d", + &znh->gate.ipv4.s_addr, znh->type, znh->ifindex, + znh->vrf_id, znh->label_num); break; case NEXTHOP_TYPE_IPV6_IFINDEX: case NEXTHOP_TYPE_IPV6: zlog_debug( - " Nexthop %s, type: %d, ifindex: %d, vrf: %d, label_num: %d", - inet_ntop(AF_INET6, &znh->gate.ipv6, buf, - sizeof(buf)), - znh->type, znh->ifindex, znh->vrf_id, - znh->label_num); + " Nexthop %pI6, type: %d, ifindex: %d, vrf: %d, label_num: %d", + &znh->gate.ipv6, znh->type, znh->ifindex, + znh->vrf_id, znh->label_num); break; case NEXTHOP_TYPE_IFINDEX: zlog_debug(" Nexthop IFINDEX: %d, ifindex: %d", |