From: Donald Sharp Date: Mon, 26 Oct 2020 13:36:17 +0000 (-0400) Subject: pbrd: Remove inet_ntoa usage from pbr X-Git-Tag: base_7.6~361^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9904db41e121f9ab656bbb8ad7b2a49a77c59943;p=matthieu%2Ffrr.git pbrd: Remove inet_ntoa usage from pbr Convert over to using %pI4 for the last inet_ntoa Signed-off-by: Donald Sharp --- diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c index b8ee974635..697c65ca45 100644 --- a/pbrd/pbr_zebra.c +++ b/pbrd/pbr_zebra.c @@ -408,10 +408,10 @@ static int pbr_zebra_nexthop_update(ZAPI_CALLBACK_ARGS) for (i = 0; i < nhr.nexthop_num; i++) { DEBUGD(&pbr_dbg_zebra, - "%s: \tType: %d: vrf: %d, ifindex: %d gate: %s", + "%s: \tType: %d: vrf: %d, ifindex: %d gate: %pI4", __func__, nhr.nexthops[i].type, nhr.nexthops[i].vrf_id, nhr.nexthops[i].ifindex, - inet_ntoa(nhr.nexthops[i].gate.ipv4)); + &nhr.nexthops[i].gate.ipv4); } }