From e0cade1bbc408b96a60fbbe40cd2f32aa31e73f3 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Fri, 12 Apr 2019 18:00:05 -0300 Subject: [PATCH] lib: fix inverted logic in the "debug all" command Signed-off-by: Renato Westphal --- lib/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/debug.c b/lib/debug.c index 0bacf9789c..72fd4648ee 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -28,7 +28,7 @@ static const struct debug_callbacks *callbacks; DEFUN_NOSH(debug_all, debug_all_cmd, "[no] debug all", NO_STR DEBUG_STR "Toggle all debugging output\n") { - bool set = strmatch(argv[0]->text, "no"); + bool set = !strmatch(argv[0]->text, "no"); uint32_t mode = DEBUG_NODE2MODE(vty->node); if (callbacks->debug_set_all) -- 2.39.5