diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-10-26 09:36:17 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-26 09:38:23 -0400 |
| commit | 9904db41e121f9ab656bbb8ad7b2a49a77c59943 (patch) | |
| tree | 7c554d59ff7d99550820671104401e0c2c9962f7 | |
| parent | d7bd0c043c6f5cf9f4c58c7006ebda2bfe6ced6a (diff) | |
pbrd: Remove inet_ntoa usage from pbr
Convert over to using %pI4 for the last inet_ntoa
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
| -rw-r--r-- | pbrd/pbr_zebra.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |
