diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-06-30 17:52:56 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-06-30 17:52:56 +0000 |
| commit | 1161690b93b48fbd07f4ee25c1261574db8d71c5 (patch) | |
| tree | 7ffbe5c3b333b1fe0b8a3f042d8b1af602d48019 /ldpd/ldp_debug.c | |
| parent | ab782c96f881b1fdd59f52ba972cd82b5eeadc66 (diff) | |
| parent | 5fca4e3635c2778e8349bce0eaf944c26913d321 (diff) | |
Merge branch 'master' of https://github.com/dwalton76/frr into bgpd-ipv4-plus-label-misc3
Conflicts:
bgpd/bgp_route.c
Diffstat (limited to 'ldpd/ldp_debug.c')
| -rw-r--r-- | ldpd/ldp_debug.c | 50 |
1 files changed, 22 insertions, 28 deletions
diff --git a/ldpd/ldp_debug.c b/ldpd/ldp_debug.c index 7915fb709d..466b6af8b2 100644 --- a/ldpd/ldp_debug.c +++ b/ldpd/ldp_debug.c @@ -105,33 +105,29 @@ ldp_vty_debug(struct vty *vty, int disable, const char *type_str, int ldp_vty_show_debugging(struct vty *vty) { - vty_out(vty, "LDP debugging status:%s", VTY_NEWLINE); + vty_outln (vty, "LDP debugging status:"); if (LDP_DEBUG(hello, HELLO_RECV)) - vty_out(vty, " LDP discovery debugging is on (inbound)%s", - VTY_NEWLINE); + vty_outln (vty," LDP discovery debugging is on (inbound)"); if (LDP_DEBUG(hello, HELLO_SEND)) - vty_out(vty, " LDP discovery debugging is on (outbound)%s", - VTY_NEWLINE); + vty_outln (vty," LDP discovery debugging is on (outbound)"); if (LDP_DEBUG(errors, ERRORS)) - vty_out(vty, " LDP errors debugging is on%s", VTY_NEWLINE); + vty_outln (vty, " LDP errors debugging is on"); if (LDP_DEBUG(event, EVENT)) - vty_out(vty, " LDP events debugging is on%s", VTY_NEWLINE); + vty_outln (vty, " LDP events debugging is on"); if (LDP_DEBUG(msg, MSG_RECV_ALL)) - vty_out(vty, " LDP detailed messages debugging is on " - "(inbound)%s", VTY_NEWLINE); + vty_outln (vty, + " LDP detailed messages debugging is on " "(inbound)"); else if (LDP_DEBUG(msg, MSG_RECV)) - vty_out(vty, " LDP messages debugging is on (inbound)%s", - VTY_NEWLINE); + vty_outln (vty," LDP messages debugging is on (inbound)"); if (LDP_DEBUG(msg, MSG_SEND_ALL)) - vty_out(vty, " LDP detailed messages debugging is on " - "(outbound)%s", VTY_NEWLINE); + vty_outln (vty, + " LDP detailed messages debugging is on " "(outbound)"); else if (LDP_DEBUG(msg, MSG_SEND)) - vty_out(vty, " LDP messages debugging is on (outbound)%s", - VTY_NEWLINE); + vty_outln (vty," LDP messages debugging is on (outbound)"); if (LDP_DEBUG(zebra, ZEBRA)) - vty_out(vty, " LDP zebra debugging is on%s", VTY_NEWLINE); - vty_out (vty, "%s", VTY_NEWLINE); + vty_outln (vty, " LDP zebra debugging is on"); + vty_out (vty, VTYNL); return (CMD_SUCCESS); } @@ -142,45 +138,43 @@ ldp_debug_config_write(struct vty *vty) int write = 0; if (CONF_LDP_DEBUG(hello, HELLO_RECV)) { - vty_out(vty, "debug mpls ldp discovery hello recv%s", - VTY_NEWLINE); + vty_outln (vty,"debug mpls ldp discovery hello recv"); write = 1; } if (CONF_LDP_DEBUG(hello, HELLO_SEND)) { - vty_out(vty, "debug mpls ldp discovery hello sent%s", - VTY_NEWLINE); + vty_outln (vty,"debug mpls ldp discovery hello sent"); write = 1; } if (CONF_LDP_DEBUG(errors, ERRORS)) { - vty_out(vty, "debug mpls ldp errors%s", VTY_NEWLINE); + vty_outln (vty, "debug mpls ldp errors"); write = 1; } if (CONF_LDP_DEBUG(event, EVENT)) { - vty_out(vty, "debug mpls ldp event%s", VTY_NEWLINE); + vty_outln (vty, "debug mpls ldp event"); write = 1; } if (CONF_LDP_DEBUG(msg, MSG_RECV_ALL)) { - vty_out(vty, "debug mpls ldp messages recv all%s", VTY_NEWLINE); + vty_outln (vty, "debug mpls ldp messages recv all"); write = 1; } else if (CONF_LDP_DEBUG(msg, MSG_RECV)) { - vty_out(vty, "debug mpls ldp messages recv%s", VTY_NEWLINE); + vty_outln (vty, "debug mpls ldp messages recv"); write = 1; } if (CONF_LDP_DEBUG(msg, MSG_SEND_ALL)) { - vty_out(vty, "debug mpls ldp messages sent all%s", VTY_NEWLINE); + vty_outln (vty, "debug mpls ldp messages sent all"); write = 1; } else if (CONF_LDP_DEBUG(msg, MSG_SEND)) { - vty_out(vty, "debug mpls ldp messages sent%s", VTY_NEWLINE); + vty_outln (vty, "debug mpls ldp messages sent"); write = 1; } if (CONF_LDP_DEBUG(zebra, ZEBRA)) { - vty_out(vty, "debug mpls ldp zebra%s", VTY_NEWLINE); + vty_outln (vty, "debug mpls ldp zebra"); write = 1; } |
