diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-15 11:56:07 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-04-06 13:22:43 -0400 |
| commit | d37653864b4af35e262294a09c756fedec4793b3 (patch) | |
| tree | 2169860f45fc67f4409044b7d820601f17c9c81f /pbrd/pbr_debug.c | |
| parent | a6c93cb20fa11bfdc3dedc81099cf9ee39f19f64 (diff) | |
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 1634595128..e9b4a52955 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) |
