summaryrefslogtreecommitdiff
path: root/lib/debug.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-03-26 20:25:21 +0200
committerMark Stapp <mjs@cisco.com>2024-08-27 09:53:02 -0400
commit830972cab211a2f7ad82d7635ad9111afac8f47b (patch)
treed33c9a59f0e3fefbcd9173684bacffbf41127f63 /lib/debug.h
parent82e52e0f21c12aa5b7270032c32b38e1fa33aa28 (diff)
lib: common debug status output
Implement common code for debug status output and remove daemon-specific code that is duplicated everywhere. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/debug.h')
-rw-r--r--lib/debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/debug.h b/lib/debug.h
index 60f42e3071..eee314cff5 100644
--- a/lib/debug.h
+++ b/lib/debug.h
@@ -199,6 +199,9 @@ struct debug {
#define DEBUGN(name, fmt, ...) DEBUG(notice, name, fmt, ##__VA_ARGS__)
#define DEBUGD(name, fmt, ...) DEBUG(debug, name, fmt, ##__VA_ARGS__)
+/* Show current debugging status. */
+void debug_status_write(struct vty *vty);
+
/*
* Register a debug item.
*/