X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=examples%2Fvhost%2Fmain.c;h=e33a0f3c97f54aa14dd2520002754e1fdd2c28a8;hp=84e0d6366d9333d3ad4c7d2b737c3e56e73b238b;hb=dec7b1884a555c941110526cc6cb9dfa08fd51b9;hpb=4e96556a21bc60a89b05bd92163a5897ae2b43a4 diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 84e0d6366d..e33a0f3c97 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -1499,7 +1499,7 @@ main(int argc, char *argv[]) "Cannot create print-stats thread\n"); /* Set thread_name for aid in debugging. */ - snprintf(thread_name, RTE_MAX_THREAD_NAME_LEN, "print-stats"); + snprintf(thread_name, sizeof(thread_name), "print-stats"); ret = rte_thread_setname(tid, thread_name); if (ret != 0) RTE_LOG(DEBUG, VHOST_CONFIG,