aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2016-12-23 02:59:34 -0800
committerMatus Fabian <matfabia@cisco.com>2016-12-23 12:04:26 +0000
commitfe7cdfa629ae5b79bb5ce3c43911a370153d872e (patch)
treed63d4f73abfe223566c6e82877d4b6d0d1c20f7e /plugins
parente73d0a3aab61a4b192fe73165e6cece4a95c107b (diff)
SNAT: fix 'show snat verbose' bug - format vector as %v
Change-Id: Ia829da43a273c89dee47b32250ab032d992193cd Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/snat-plugin/snat/snat.c6
1 files changed, 3 insertions, 3 deletions
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));