summaryrefslogtreecommitdiff
path: root/zebra/zebra_srv6.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <cscarpit@cisco.com>2024-11-03 08:44:23 +0100
committerCarmine Scarpitta <cscarpit@cisco.com>2024-11-03 08:44:23 +0100
commitd1810d5c7f940b88063cffcb8477271190447b8f (patch)
treef24835d3bfb4838d04eecab26cc9ed3ba99bbe6b /zebra/zebra_srv6.c
parent58fd136f44274d8956a43c6d23ba81ab6f3bbf50 (diff)
zebra: Fix wrong debug macro in `alloc_srv6_sid_func_dynamic`
`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 <cscarpit@cisco.com>
Diffstat (limited to 'zebra/zebra_srv6.c')
-rw-r--r--zebra/zebra_srv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_srv6.c b/zebra/zebra_srv6.c
index 56536db866..b87501b755 100644
--- a/zebra/zebra_srv6.c
+++ b/zebra/zebra_srv6.c
@@ -1465,7 +1465,7 @@ static bool alloc_srv6_sid_func_dynamic(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 dynamic SID function %u from block %pFX",
__func__, *sid_func, &block->prefix);