From 58fd136f44274d8956a43c6d23ba81ab6f3bbf50 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Sun, 3 Nov 2024 08:43:55 +0100 Subject: [PATCH] zebra: Fix wrong debug macro in `alloc_srv6_sid_func_explicit` `ZEBRA_DEBUG_SRV6` is not the correct macro to evaluate if SRv6 debug is enabled or not. The correct macro is `IS_ZEBRA_DEBUG_SRV6`. Fix this by replacing `ZEBRA_DEBUG_SRV6` with `IS_ZEBRA_DEBUG_SRV6`. Signed-off-by: Carmine Scarpitta --- zebra/zebra_srv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_srv6.c b/zebra/zebra_srv6.c index 152c1d3dd1..56536db866 100644 --- a/zebra/zebra_srv6.c +++ b/zebra/zebra_srv6.c @@ -1305,7 +1305,7 @@ static bool alloc_srv6_sid_func_explicit(struct zebra_srv6_sid_block *block, block->u.uncompressed.num_func_allocated++; } - if (ZEBRA_DEBUG_SRV6) + if (IS_ZEBRA_DEBUG_SRV6) zlog_debug("%s: allocated explicit SID function %u from block %pFX", __func__, sid_func, &block->prefix); -- 2.39.5