summaryrefslogtreecommitdiffstats
path: root/ripngd/ripng_debug.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-06-21 05:10:57 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-06-29 19:31:28 +0200
commit96ade3ed7716c89b8047a1c0ab3377985d461cf8 (patch)
tree1c3061738c2c0027612b6cdb3e5d5eccb08587bf /ripngd/ripng_debug.c
parentlib: add vty_outln() (diff)
downloadfrr-96ade3ed7716c89b8047a1c0ab3377985d461cf8.tar.xz
frr-96ade3ed7716c89b8047a1c0ab3377985d461cf8.zip
*: use vty_outln
Saves 400 lines Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ripngd/ripng_debug.c')
-rw-r--r--ripngd/ripng_debug.c28
1 files changed, 11 insertions, 17 deletions
diff --git a/ripngd/ripng_debug.c b/ripngd/ripng_debug.c
index 372ab85e6..9ba0e10e4 100644
--- a/ripngd/ripng_debug.c
+++ b/ripngd/ripng_debug.c
@@ -35,31 +35,28 @@ DEFUN (show_debugging_ripng,
DEBUG_STR
"RIPng configuration\n")
{
- vty_out (vty, "RIPng debugging status:%s", VTY_NEWLINE);
+ vty_outln (vty, "RIPng debugging status:");
if (IS_RIPNG_DEBUG_EVENT)
- vty_out (vty, " RIPng event debugging is on%s", VTY_NEWLINE);
+ vty_outln (vty, " RIPng event debugging is on");
if (IS_RIPNG_DEBUG_PACKET)
{
if (IS_RIPNG_DEBUG_SEND && IS_RIPNG_DEBUG_RECV)
{
- vty_out (vty, " RIPng packet debugging is on%s",
- VTY_NEWLINE);
+ vty_outln (vty," RIPng packet debugging is on");
}
else
{
if (IS_RIPNG_DEBUG_SEND)
- vty_out (vty, " RIPng packet send debugging is on%s",
- VTY_NEWLINE);
+ vty_outln (vty," RIPng packet send debugging is on");
else
- vty_out (vty, " RIPng packet receive debugging is on%s",
- VTY_NEWLINE);
+ vty_outln (vty," RIPng packet receive debugging is on");
}
}
if (IS_RIPNG_DEBUG_ZEBRA)
- vty_out (vty, " RIPng zebra debugging is on%s", VTY_NEWLINE);
+ vty_outln (vty, " RIPng zebra debugging is on");
return CMD_SUCCESS;
}
@@ -197,31 +194,28 @@ config_write_debug (struct vty *vty)
if (IS_RIPNG_DEBUG_EVENT)
{
- vty_out (vty, "debug ripng events%s", VTY_NEWLINE);
+ vty_outln (vty, "debug ripng events");
write++;
}
if (IS_RIPNG_DEBUG_PACKET)
{
if (IS_RIPNG_DEBUG_SEND && IS_RIPNG_DEBUG_RECV)
{
- vty_out (vty, "debug ripng packet%s",
- VTY_NEWLINE);
+ vty_outln (vty,"debug ripng packet");
write++;
}
else
{
if (IS_RIPNG_DEBUG_SEND)
- vty_out (vty, "debug ripng packet send%s",
- VTY_NEWLINE);
+ vty_outln (vty,"debug ripng packet send");
else
- vty_out (vty, "debug ripng packet recv%s",
- VTY_NEWLINE);
+ vty_outln (vty,"debug ripng packet recv");
write++;
}
}
if (IS_RIPNG_DEBUG_ZEBRA)
{
- vty_out (vty, "debug ripng zebra%s", VTY_NEWLINE);
+ vty_outln (vty, "debug ripng zebra");
write++;
}
return write;