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,9 +73,10 @@ static inline bool bgp_install_info_to_zebra(struct bgp *bgp)
return false; return false;
if (!IS_BGP_INST_KNOWN_TO_ZEBRA(bgp)) { if (!IS_BGP_INST_KNOWN_TO_ZEBRA(bgp)) {
zlog_debug( if (BGP_DEBUG(zebra, ZEBRA))
"%s: No zebra instance to talk to, not installing information", zlog_debug(
__func__); "%s: No zebra instance to talk to, not installing information",
__func__);
return false; return false;
} }