]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: minor changes in the output of some show commands
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 19 Apr 2017 20:12:35 +0000 (17:12 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 26 Apr 2017 13:36:33 +0000 (10:36 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/ldp_vty_exec.c

index a149b7fe3522b4993dbd758cb88559dad8e291fa..ffd20abb4a73fce9000c4dcadbfde5028bb18067 100644 (file)
@@ -517,8 +517,7 @@ show_nbr_msg(struct vty *vty, struct imsg *imsg, struct show_params *params)
                    nbr_state_name(nbr->nbr_state), addr);
                if (strlen(addr) > 15)
                        vty_out(vty, "%s%48s", VTY_NEWLINE, " ");
-               vty_out(vty, " %8s%s", nbr->uptime == 0 ? "-" :
-                   log_time(nbr->uptime), VTY_NEWLINE);
+               vty_out(vty, " %8s%s", log_time(nbr->uptime), VTY_NEWLINE);
                break;
        case IMSG_CTL_END:
                return (1);
@@ -909,6 +908,7 @@ show_nbr_capabilities_msg(struct vty *vty, struct imsg *imsg, struct show_params
                vty_out(vty, "Peer LDP Identifier: %s:0%s", inet_ntoa(nbr->id),
                    VTY_NEWLINE);
                show_nbr_capabilities(vty, nbr);
+               vty_out(vty, "%s", VTY_NEWLINE);
                break;
        case IMSG_CTL_END:
                vty_out(vty, "%s", VTY_NEWLINE);