From fe7cdfa629ae5b79bb5ce3c43911a370153d872e Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Fri, 23 Dec 2016 02:59:34 -0800 Subject: SNAT: fix 'show snat verbose' bug - format vector as %v Change-Id: Ia829da43a273c89dee47b32250ab032d992193cd Signed-off-by: Matus Fabian --- plugins/snat-plugin/snat/snat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/snat-plugin/snat') diff --git a/plugins/snat-plugin/snat/snat.c b/plugins/snat-plugin/snat/snat.c index b3b2097a3ee..bc9956841d2 100644 --- a/plugins/snat-plugin/snat/snat.c +++ b/plugins/snat-plugin/snat/snat.c @@ -1860,7 +1860,7 @@ show_snat_command_fn (vlib_main_t * vm, ({ s = format (s, " %d", j); })); - vlib_cli_output (vm, " %d busy ports:%s", ap->busy_ports, s); + vlib_cli_output (vm, " %d busy ports:%v", ap->busy_ports, s); } } @@ -1873,7 +1873,7 @@ show_snat_command_fn (vlib_main_t * vm, { vlib_worker_thread_t *w = vlib_worker_threads + *worker + sm->first_worker_index; - vlib_cli_output (vm, " %s", w->name); + vlib_cli_output (vm, " %v", w->name); } } } @@ -1924,7 +1924,7 @@ show_snat_command_fn (vlib_main_t * vm, continue; vlib_worker_thread_t *w = vlib_worker_threads + j; - vlib_cli_output (vm, "Thread %d (%s at lcore %u):", j, w->name, + vlib_cli_output (vm, "Thread %d (%v at lcore %u):", j, w->name, w->lcore_id); vlib_cli_output (vm, " %d list pool elements", pool_elts (tsm->list_pool)); -- cgit 1.2.3-korg