Skip to content
Permalink
Browse files

lib: fix show error all

show error all was displaying 0 value for code, whereas real code value
was not displayed.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
  • Loading branch information...
pguibert6WIND committed Aug 21, 2018
1 parent f8a5233 commit b2111f08a5da39ac7de7489aab37f35b812aedba
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ferr.c
@@ -146,7 +146,7 @@ void log_ref_display(struct vty *vty, uint32_t code, bool json)
char ubuf[256];

snprintf(pbuf, sizeof(pbuf), "\nError %"PRIu32" - %s",
code, ref->title);
ref->code, ref->title);
memset(ubuf, '=', strlen(pbuf));
ubuf[sizeof(ubuf) - 1] = '\0';

0 comments on commit b2111f0

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.