summaryrefslogtreecommitdiff
path: root/zebra/redistribute.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-01-14 12:59:50 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-01-18 08:39:41 -0500
commit659ec5e9c2d103681fa255b398e9df4f3350b68a (patch)
tree3e56d216c91937f0597fb73ef9131bfcb48c0ae7 /zebra/redistribute.c
parent5ef3568f22fbf8a6fb7cd018ac7d840d514c9e69 (diff)
zebra: Cleanup temp variable usage in debugs for %pFX
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/redistribute.c')
-rw-r--r--zebra/redistribute.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c
index eb4c493870..1e562db158 100644
--- a/zebra/redistribute.c
+++ b/zebra/redistribute.c
@@ -519,14 +519,12 @@ void zebra_interface_address_add_update(struct interface *ifp,
{
struct listnode *node, *nnode;
struct zserv *client;
- struct prefix *p;
- if (IS_ZEBRA_DEBUG_EVENT) {
- p = ifc->address;
+ if (IS_ZEBRA_DEBUG_EVENT)
zlog_debug(
"MESSAGE: ZEBRA_INTERFACE_ADDRESS_ADD %pFX on %s vrf %s(%u)",
- p, ifp->name, ifp->vrf->name, ifp->vrf->vrf_id);
- }
+ ifc->address, ifp->name, ifp->vrf->name,
+ ifp->vrf->vrf_id);
if (!CHECK_FLAG(ifc->conf, ZEBRA_IFC_REAL))
flog_warn(
@@ -556,14 +554,12 @@ void zebra_interface_address_delete_update(struct interface *ifp,
{
struct listnode *node, *nnode;
struct zserv *client;
- struct prefix *p;
- if (IS_ZEBRA_DEBUG_EVENT) {
- p = ifc->address;
+ if (IS_ZEBRA_DEBUG_EVENT)
zlog_debug(
"MESSAGE: ZEBRA_INTERFACE_ADDRESS_DELETE %pFX on %s vrf %s(%u)",
- p, ifp->name, ifp->vrf->name, ifp->vrf->vrf_id);
- }
+ ifc->address, ifp->name, ifp->vrf->name,
+ ifp->vrf->vrf_id);
zebra_vxlan_add_del_gw_macip(ifp, ifc->address, 0);