diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2017-06-29 13:22:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-29 13:22:37 -0500 |
| commit | efd934cab078c715c5f647c19cebd8f85463b753 (patch) | |
| tree | 313fa8bf14a7154db1cf285e5cc9dc7621f3fdc7 /tests/lib/cli/test_cli.c | |
| parent | 9e3b206d7c25902cd3917d8969f16d118c8fea91 (diff) | |
| parent | 8e25c8ce2ff6718d3c1d6cb5b6df6409147570d6 (diff) | |
Merge pull request #746 from qlyoung/vty-outln
vty_outln()
Diffstat (limited to 'tests/lib/cli/test_cli.c')
| -rw-r--r-- | tests/lib/cli/test_cli.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/cli/test_cli.c b/tests/lib/cli/test_cli.c index 2a68ba3826..43366d49e2 100644 --- a/tests/lib/cli/test_cli.c +++ b/tests/lib/cli/test_cli.c @@ -47,10 +47,10 @@ DEFPY(magic_test, magic_test_cmd, "1\n2\n3\n4\n5\n") { char buf[256]; - vty_out(vty, "def: %s%s", self->string, VTY_NEWLINE); - vty_out(vty, "num: %ld%s", magic, VTY_NEWLINE); - vty_out(vty, "ipv4: %s%s", prefix2str(ipv4net, buf, sizeof(buf)), VTY_NEWLINE); - vty_out(vty, "ipv6: %s%s", inet_ntop(AF_INET6, &ipv6, buf, sizeof(buf)), VTY_NEWLINE); + vty_outln(vty, "def: %s", self->string); + vty_outln(vty, "num: %ld", magic); + vty_outln(vty, "ipv4: %s", prefix2str(ipv4net, buf, sizeof(buf))); + vty_outln(vty, "ipv6: %s", inet_ntop(AF_INET6, &ipv6, buf, sizeof(buf))); return CMD_SUCCESS; } |
