]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix show error all 2878/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 21 Aug 2018 09:09:36 +0000 (11:09 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 21 Aug 2018 09:10:40 +0000 (11:10 +0200)
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>
lib/ferr.c

index 2fa5db6f34fb1ec20add64f60c5f39985c6b8acd..d1b9d514b468e8d7d63159644d0b68e3ef0efa38 100644 (file)
@@ -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';