]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pbrd: Remove inet_ntoa usage from pbr
authorDonald Sharp <sharpd@nvidia.com>
Mon, 26 Oct 2020 13:36:17 +0000 (09:36 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 26 Oct 2020 13:38:23 +0000 (09:38 -0400)
Convert over to using %pI4 for the last inet_ntoa

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
pbrd/pbr_zebra.c

index b8ee974635df67742aed5bae9bc4b7360ee48af6..697c65ca456f78fc646e228fe2dab5c145de1e1d 100644 (file)
@@ -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);
                }
        }