diff options
author | sri-mohan1 <sri.mohan@samsung.com> | 2024-09-09 06:16:16 +0200 |
---|---|---|
committer | sri-mohan1 <sri.mohan@samsung.com> | 2024-09-10 07:07:04 +0200 |
commit | bbfbf3e6b98076de9cbd5fd91b5d50738ac1d549 (patch) | |
tree | 0e9bfe474101ba57c86f8d1639f8cfc612577654 /bgpd/bgp_debug.c | |
parent | Merge pull request #16764 from LabNConsulting/chopps/fix-clang-sa-warning (diff) | |
download | frr-bbfbf3e6b98076de9cbd5fd91b5d50738ac1d549.tar.xz frr-bbfbf3e6b98076de9cbd5fd91b5d50738ac1d549.zip |
bgpd: changes for code maintainability
these changes are for improving the code maintainability and readability
Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index 6228432bd..97c3e5740 100644 --- a/bgpd/bgp_debug.c +++ b/bgpd/bgp_debug.c @@ -2558,7 +2558,7 @@ static int bgp_debug_per_prefix(const struct prefix *p, struct bgp_debug_filter *filter; struct listnode *node, *nnode; - if (term_bgp_debug_type & BGP_DEBUG_TYPE) { + if (CHECK_FLAG(term_bgp_debug_type, BGP_DEBUG_TYPE)) { /* We are debugging all prefixes so return true */ if (!per_prefix_list || list_isempty(per_prefix_list)) return 1; @@ -2591,7 +2591,7 @@ static bool bgp_debug_per_peer(char *host, const struct prefix *p, struct bgp_debug_filter *filter; struct listnode *node, *nnode; - if (term_bgp_debug_type & BGP_DEBUG_TYPE) { + if (CHECK_FLAG(term_bgp_debug_type, BGP_DEBUG_TYPE)) { /* We are debugging all peers so return true */ if (!per_peer_list || list_isempty(per_peer_list)) return true; |