summaryrefslogtreecommitdiff
path: root/pbrd/pbr_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbrd/pbr_debug.c')
-rw-r--r--pbrd/pbr_debug.c2
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)