diff options
| author | Mark Stapp <mjs@voltanet.io> | 2021-03-15 08:36:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-15 08:36:23 -0400 |
| commit | cc01c03434dbcbd532043584a9b91e60acd2afe3 (patch) | |
| tree | f669a337b6e646db5412bf4db193fcd940b5b1b2 /sharpd/sharp_zebra.c | |
| parent | 8b87b2f4f6fd5e3109cfdca7f5270b2b1612faeb (diff) | |
| parent | ad6f7449ef178417384e2da979ec094372de6dba (diff) | |
Merge pull request #8230 from donaldsharp/flex_more
more switchover to using our builtin printf functionality
Diffstat (limited to 'sharpd/sharp_zebra.c')
| -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 fed732b843..0095aed547 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", |
