Skip to content

Commit

Permalink
zebra: Fix wrong debug macro in release_srv6_sid_func_explicit
Browse files Browse the repository at this point in the history
`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 <[email protected]>
  • Loading branch information
cscarpitta committed Nov 3, 2024
1 parent 4710baa commit 8e96fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/zebra_srv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ static bool release_srv6_sid_func_explicit(struct zebra_srv6_sid_block *block,

format = block->sid_format;

if (ZEBRA_DEBUG_SRV6)
if (IS_ZEBRA_DEBUG_SRV6)
zlog_debug("%s: trying to release explicit SRv6 SID function %u from block %pFX",
__func__, sid_func, &block->prefix);

Expand Down

0 comments on commit 8e96fce

Please sign in to comment.