summaryrefslogtreecommitdiff
path: root/zebra/zebra_vxlan.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-07-16 20:17:05 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-07-16 20:30:55 -0400
commit8f86bb067ee9a7f5080da1406b9d03ce3dff884e (patch)
tree3d62d4b472d966b6b0c1de564995df247d362a02 /zebra/zebra_vxlan.c
parenta04686849fdf2f8bc81049d51c40a45c492b1f7f (diff)
zebra: Guard debug messages
A bunch of debug code has snuck in that is unguarded. Fix this. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vxlan.c')
-rw-r--r--zebra/zebra_vxlan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index dff50ceef4..359585df73 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -9719,8 +9719,9 @@ void zebra_vxlan_sg_replay(ZAPI_HANDLER_ARGS)
SET_FLAG(zvrf->flags, ZEBRA_PIM_SEND_VXLAN_SG);
if (!EVPN_ENABLED(zvrf)) {
- zlog_debug("VxLAN SG replay request on unexpected vrf %d",
- zvrf->vrf->vrf_id);
+ if (IS_ZEBRA_DEBUG_VXLAN)
+ zlog_debug("VxLAN SG replay request on unexpected vrf %d",
+ zvrf->vrf->vrf_id);
return;
}