summaryrefslogtreecommitdiff
path: root/lib/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/debug.c b/lib/debug.c
index 9c283176a6..d25c32d428 100644
--- a/lib/debug.c
+++ b/lib/debug.c
@@ -38,6 +38,16 @@ DEFUN_NOSH (debug_all,
/* ------------------------------------------------------------------------- */
+void debug_status_write(struct vty *vty)
+{
+ struct debug *debug;
+
+ frr_each (debug_list, &debug_head, debug) {
+ if (DEBUG_MODE_CHECK(debug, DEBUG_MODE_ALL))
+ vty_out(vty, " %s debugging is on\n", debug->desc);
+ }
+}
+
static int config_write_debug(struct vty *vty)
{
struct debug *debug;