diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-21 03:10:57 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-29 17:31:28 +0000 |
| commit | 96ade3ed7716c89b8047a1c0ab3377985d461cf8 (patch) | |
| tree | 1c3061738c2c0027612b6cdb3e5d5eccb08587bf /bgpd/rfapi/vnc_debug.c | |
| parent | 4d5f445750e01467898eee47796e80d808500d56 (diff) | |
*: use vty_outln
Saves 400 lines
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/rfapi/vnc_debug.c')
| -rw-r--r-- | bgpd/rfapi/vnc_debug.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bgpd/rfapi/vnc_debug.c b/bgpd/rfapi/vnc_debug.c index 27c81d46d6..a2d676655d 100644 --- a/bgpd/rfapi/vnc_debug.c +++ b/bgpd/rfapi/vnc_debug.c @@ -79,13 +79,13 @@ DEFUN (debug_bgp_vnc, else { term_vnc_debug |= vncdebug[i].bit; - vty_out (vty, "BGP vnc %s debugging is on%s", - vncdebug[i].name, VTY_NEWLINE); + vty_outln (vty, "BGP vnc %s debugging is on", + vncdebug[i].name); } return CMD_SUCCESS; } } - vty_out (vty, "Unknown debug flag: %s%s", argv[3]->arg, VTY_NEWLINE); + vty_outln (vty, "Unknown debug flag: %s", argv[3]->arg); return CMD_WARNING; } @@ -118,13 +118,13 @@ DEFUN (no_debug_bgp_vnc, else { term_vnc_debug &= ~vncdebug[i].bit; - vty_out (vty, "BGP vnc %s debugging is off%s", - vncdebug[i].name, VTY_NEWLINE); + vty_outln (vty, "BGP vnc %s debugging is off", + vncdebug[i].name); } return CMD_SUCCESS; } } - vty_out (vty, "Unknown debug flag: %s%s", argv[3]->arg, VTY_NEWLINE); + vty_outln (vty, "Unknown debug flag: %s", argv[3]->arg); return CMD_WARNING; } @@ -144,7 +144,7 @@ DEFUN (no_debug_bgp_vnc_all, VNC_STR) { term_vnc_debug = 0; - vty_out (vty, "All possible VNC debugging has been turned off%s", VTY_NEWLINE); + vty_outln (vty, "All possible VNC debugging has been turned off"); return CMD_SUCCESS; } @@ -163,17 +163,17 @@ DEFUN (show_debugging_bgp_vnc, { size_t i; - vty_out (vty, "BGP VNC debugging status:%s", VTY_NEWLINE); + vty_outln (vty, "BGP VNC debugging status:"); for (i = 0; i < (sizeof(vncdebug) / sizeof(struct vnc_debug)); ++i) { if (term_vnc_debug & vncdebug[i].bit) { - vty_out (vty, " BGP VNC %s debugging is on%s", - vncdebug[i].name, VTY_NEWLINE); + vty_outln (vty, " BGP VNC %s debugging is on", + vncdebug[i].name); } } - vty_out (vty, "%s", VTY_NEWLINE); + vty_outln (vty, ""); return CMD_SUCCESS; } @@ -187,7 +187,7 @@ bgp_vnc_config_write_debug (struct vty *vty) { if (conf_vnc_debug & vncdebug[i].bit) { - vty_out (vty, "debug bgp vnc %s%s", vncdebug[i].name, VTY_NEWLINE); + vty_outln (vty, "debug bgp vnc %s", vncdebug[i].name); write++; } } |
