diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-26 16:54:54 +0200 |
|---|---|---|
| committer | Mark Stapp <mjs@cisco.com> | 2024-08-27 09:53:02 -0400 |
| commit | 5dac6961540422a1ca139fae8c5ea9e5a437c4ba (patch) | |
| tree | 3ff27afc04b9605f832c747b82449b58d5aa5455 /tests/lib/cli/test_commands.c | |
| parent | 1797b7eefc730bb4f5aec08f130861650c61dd97 (diff) | |
lib: rework debug init
The debug library allows to register a `debug_set_all` callback which
should enable all debugs in a daemon. This callback is implemented
exactly the same in each daemon. Instead of duplicating the code, rework
the lib to allow registration of each debug type, and implement the
common code only once in the lib.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'tests/lib/cli/test_commands.c')
| -rw-r--r-- | tests/lib/cli/test_commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/cli/test_commands.c b/tests/lib/cli/test_commands.c index ea84120fc1..0034c2af89 100644 --- a/tests/lib/cli/test_commands.c +++ b/tests/lib/cli/test_commands.c @@ -21,6 +21,7 @@ #include <stdlib.h> #include <unistd.h> +#include "debug.h" #include "command.h" #include "memory.h" #include "vector.h" @@ -195,6 +196,7 @@ static void test_init(void) struct cmd_element *cmd; cmd_init(1); + debug_init(); nb_init(master, NULL, 0, false); install_node(&bgp_node); |
