diff options
author | Damjan Marion <damarion@cisco.com> | 2016-11-14 10:22:48 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2016-11-15 11:08:30 +0000 |
commit | dac225e5e49e136e8700c7815d13d08ce52e9a76 (patch) | |
tree | df41cac71eac4ac3023a42a6b396b07d80e95f3b | |
parent | 409ef615f8389d61df5dbfe7a052d517f194ed33 (diff) |
threads: add assert to silence coverity warning
Change-Id: I381786b26050f2dfcb4c74094309cf2114d26d85
Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r-- | vlib/vlib/threads_cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vlib/vlib/threads_cli.c b/vlib/vlib/threads_cli.c index 631fe0c6244..70bf729b306 100644 --- a/vlib/vlib/threads_cli.c +++ b/vlib/vlib/threads_cli.c @@ -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: |