aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2016-12-23 02:59:34 -0800
committerDamjan Marion <dmarion.lists@gmail.com>2016-12-23 17:38:49 +0000
commit3eec9b458338e923dfd8826fa3a1f686bf7c9be0 (patch)
tree38be7e6f739a94820e1e632e8e1d610c6a74fe42
parentdab231a11ec96e829b22ff80c612333edc5a93e6 (diff)
SNAT: fix 'show snat verbose' bug - format vector as %v
Change-Id: Ia829da43a273c89dee47b32250ab032d992193cd Signed-off-by: Matus Fabian <matfabia@cisco.com>
-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));