Merge pull request #14766 from cscarpitta/fix/fix-missing-debug-guard

bgpd: Add missing guard for `zlog_debug`
This commit is contained in:
Donatas Abraitis 2023-11-11 18:23:19 +01:00 committed by GitHub
commit 07b99d6b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ static inline bool bgp_install_info_to_zebra(struct bgp *bgp)
return false;
if (!IS_BGP_INST_KNOWN_TO_ZEBRA(bgp)) {
if (BGP_DEBUG(zebra, ZEBRA))
zlog_debug(
"%s: No zebra instance to talk to, not installing information",
__func__);