diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-07-29 19:19:05 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-07-29 19:19:05 +0200 |
commit | 2d6e4d2ebcb30219ec204d30332a3c126cadbceb (patch) | |
tree | cc279c2c00ebdda5fc269913155307583368ca92 /vtysh | |
parent | vtysh: only show error codes once (diff) | |
download | frr-2d6e4d2ebcb30219ec204d30332a3c126cadbceb.tar.xz frr-2d6e4d2ebcb30219ec204d30332a3c126cadbceb.zip |
vtysh: style nits for error code cli handler
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/vtysh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 5e7f3f1f4..82dbe06a9 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -2404,12 +2404,14 @@ DEFUN (vtysh_show_error_code, if (arg < LIB_FERR_START || arg > LIB_FERR_END) { char *fcmd = argv_concat(argv, argc, 0); char cmd[256]; + snprintf(cmd, sizeof(cmd), "do %s", fcmd); show_per_daemon(cmd, ""); XFREE(MTYPE_TMP, fcmd); /* Otherwise, print it ourselves to avoid duplication */ } else { bool json = strmatch(argv[argc - 1]->text, "json"); + if (!strmatch(argv[2]->text, "all")) arg = strtoul(argv[2]->arg, NULL, 10); |