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>
This commit is contained in:
Dave Barach
2016-01-27 10:27:33 -05:00
parent a67c418487
commit aa67d61f01
+2 -2
View File
@@ -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);
}