diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-15 16:56:07 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-04-06 19:22:43 +0200 |
commit | d37653864b4af35e262294a09c756fedec4793b3 (patch) | |
tree | 2169860f45fc67f4409044b7d820601f17c9c81f /pbrd/pbr_debug.c | |
parent | doc: Add documentation for PBRD (diff) | |
download | frr-d37653864b4af35e262294a09c756fedec4793b3.tar.xz frr-d37653864b4af35e262294a09c756fedec4793b3.zip |
pbrd: Cleanup CI warnings
There are a bunch of CI warnings that need to be cleaned up.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_debug.c')
-rw-r--r-- | pbrd/pbr_debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pbrd/pbr_debug.c b/pbrd/pbr_debug.c index 163459512..e9b4a5295 100644 --- a/pbrd/pbr_debug.c +++ b/pbrd/pbr_debug.c @@ -75,6 +75,7 @@ static void pbr_debug_set_all(uint32_t flags, bool set) static uint32_t pbr_debug_check_all(uint32_t flags) { uint32_t mode = DEBUG_MODE_ALL; + for (unsigned int i = 0; i < array_size(pbr_debugs); i++) mode &= DEBUG_MODE_CHECK(pbr_debugs[i], flags); return mode; @@ -118,6 +119,7 @@ DEFPY(debug_pbr, "Events\n") { uint32_t mode = DEBUG_NODE2MODE(vty->node); + if (map) DEBUG_MODE_SET(&pbr_dbg_map, mode, !no); if (zebra) |