summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/command.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index 7986c676fc..29283418ce 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -220,6 +220,8 @@ struct cmd_element
/* handler function for command */
int (*func) (const struct cmd_element *, struct vty *, int, struct cmd_token *[]);
+
+ const char *name; /* symbol name for debugging */
};
/* Return value of the commands. */
@@ -252,6 +254,7 @@ struct cmd_element
.doc = helpstr, \
.attr = attrs, \
.daemon = dnum, \
+ .name = #cmdname, \
};
#define DEFUN_CMD_FUNC_DECL(funcname) \