Skip to content

Commit

Permalink
Merge pull request #14766 from cscarpitta/fix/fix-missing-debug-guard
Browse files Browse the repository at this point in the history
bgpd: Add missing guard for `zlog_debug`
  • Loading branch information
ton31337 authored Nov 11, 2023
2 parents 19bcca4 + 64632d2 commit 07b99d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ static inline bool bgp_install_info_to_zebra(struct bgp *bgp)
return false;

if (!IS_BGP_INST_KNOWN_TO_ZEBRA(bgp)) {
zlog_debug(
"%s: No zebra instance to talk to, not installing information",
__func__);
if (BGP_DEBUG(zebra, ZEBRA))
zlog_debug(
"%s: No zebra instance to talk to, not installing information",
__func__);
return false;
}

Expand Down

0 comments on commit 07b99d6

Please sign in to comment.