diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2024-11-03 08:42:36 +0100 |
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2024-11-03 08:42:36 +0100 |
| commit | 973c4750e1d1ea9bd05dfba2e27fe2d1dcc10a02 (patch) | |
| tree | 83ecd9a50e0e47e853456b81144fafd2be2eb053 /zebra/zebra_srv6.c | |
| parent | a69f66176da7085cb592ae359078a9350b592fee (diff) | |
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 <cscarpit@cisco.com>
Diffstat (limited to 'zebra/zebra_srv6.c')
| -rw-r--r-- | zebra/zebra_srv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_srv6.c b/zebra/zebra_srv6.c index e0df47bc2c..693ba62202 100644 --- a/zebra/zebra_srv6.c +++ b/zebra/zebra_srv6.c @@ -1159,7 +1159,7 @@ static bool alloc_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 allocate explicit SID function %u from block %pFX", __func__, sid_func, &block->prefix); |
