From aee85f7c6ab130ce5266e54078d28593619cd09b Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Wed, 13 Nov 2024 13:49:28 -0500 Subject: [PATCH] zebra: fix unguarded debug in evpn code Guard a debug in the evpn code. Signed-off-by: Mark Stapp --- zebra/zebra_evpn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/zebra_evpn.c b/zebra/zebra_evpn.c index 0ad42ebd5b..585c926d09 100644 --- a/zebra/zebra_evpn.c +++ b/zebra/zebra_evpn.c @@ -748,7 +748,8 @@ struct zebra_evpn *zebra_evpn_from_svi(struct interface *ifp, /* Make sure the linked interface is a bridge. */ if (!IS_ZEBRA_IF_BRIDGE(br_if)) { - zlog_debug("%s: br_if NOT a bridge", __func__); + if (IS_ZEBRA_DEBUG_VXLAN) + zlog_debug("%s: br_if NOT a bridge", __func__); return NULL; } -- 2.39.5