Skip to content

Commit

Permalink
Merge pull request #17334 from cscarpitta/fix/fix-wrong-srv6-debug-ma…
Browse files Browse the repository at this point in the history
…cros

zebra: Fix incorrect debug macros
  • Loading branch information
donaldsharp authored Nov 3, 2024
2 parents e2256e3 + afd9d3f commit 747d116
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions zebra/zebra_srv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand All @@ -1331,7 +1331,7 @@ static bool alloc_srv6_sid_func_dynamic(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 dynamic SID function from block %pFX",
__func__, &block->prefix);

Expand Down Expand Up @@ -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);

Expand Down 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 Expand Up @@ -1918,7 +1918,7 @@ static bool release_srv6_sid_func_explicit(struct zebra_srv6_sid_block *block,
zebra_srv6_sid_func_free(sid_func_ptr);
}

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

Expand All @@ -1944,7 +1944,7 @@ static int release_srv6_sid_func_dynamic(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 dynamic SRv6 SID function %u from block %pFX",
__func__, sid_func, &block->prefix);

Expand Down Expand Up @@ -2107,7 +2107,7 @@ static int release_srv6_sid_func_dynamic(struct zebra_srv6_sid_block *block,
}
}

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

Expand Down

0 comments on commit 747d116

Please sign in to comment.