threads: add assert to silence coverity warning
authorDamjan Marion <[email protected]>
Mon, 14 Nov 2016 09:22:48 +0000 (10:22 +0100)
committerNeale Ranns <[email protected]>
Tue, 15 Nov 2016 11:08:30 +0000 (11:08 +0000)
Change-Id: I381786b26050f2dfcb4c74094309cf2114d26d85
Signed-off-by: Damjan Marion <[email protected]>
vlib/vlib/threads_cli.c

index 631fe0c..70bf729 100644 (file)
@@ -109,6 +109,7 @@ show_threads_fn (vlib_main_t * vm,
 
          line = format (line, "%-7u%-7u%-7u%", lcore, core_id, socket_id);
 #if DPDK==1
+         ASSERT (lcore <= RTE_MAX_LCORE);
          switch (lcore_config[lcore].state)
            {
            case WAIT: