summaryrefslogtreecommitdiff
path: root/lib/debug.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-05-24 20:15:31 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-05-28 17:16:16 -0400
commitae0994f6eb301491aafb8fef8f1d8c6a9033fae9 (patch)
tree406cc9c8c8e8ed320d1f7df3845e2194120004c3 /lib/debug.c
parentf756a869aeefec55c31d54e1dff4b9c116532512 (diff)
lib: Separate out the debug_init api
Separate out the debug_init api to have 2 functions: 1) Function to register a callback 2) Function to initiate the cli. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/debug.c b/lib/debug.c
index a39623b039..3248ceb13b 100644
--- a/lib/debug.c
+++ b/lib/debug.c
@@ -54,7 +54,10 @@ void debug_init(struct debug_callbacks *cb)
}
debug_cb_list_add_head(&cb_head, cb);
+}
+void debug_init_cli(void)
+{
install_element(ENABLE_NODE, &debug_all_cmd);
install_element(CONFIG_NODE, &debug_all_cmd);
}