aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-01-27 10:27:33 -0500
committerDave Barach <dave@barachs.net>2016-01-27 10:27:43 -0500
commitaa67d61f01ee5e1ae6968f4fe84f9efc0fb694be (patch)
tree82603143458bae6c118b0e04232745d4e78f9b10
parenta67c41848724879ff89f2ece2d92f24d3b89d960 (diff)
Print worker thread name as a c-string, not a vector. Otherwise, the
output is certain to contain a NULL byte. Change-Id: Id80e1334d7a2cb6788f1db33cde142f84826db36 Signed-off-by: Dave Barach <dave@barachs.net>
-rw-r--r--vlib/vlib/node_cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vlib/vlib/node_cli.c b/vlib/vlib/node_cli.c
index 59f5623eca4..13a1b91ef81 100644
--- a/vlib/vlib/node_cli.c
+++ b/vlib/vlib/node_cli.c
@@ -335,10 +335,10 @@ show_node_runtime (vlib_main_t * vm,
vlib_cli_output (vm, "---------------");
if ( w->dpdk_lcore_id > -1)
- vlib_cli_output (vm, "Thread %d %v (lcore %u)", j, w->name,
+ vlib_cli_output (vm, "Thread %d %s (lcore %u)", j, w->name,
w->dpdk_lcore_id);
else
- vlib_cli_output (vm, "Thread %d %v", j,
+ vlib_cli_output (vm, "Thread %d %s", j,
w->name);
}