X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=lib%2Flibrte_pdump%2Frte_pdump.c;fp=lib%2Flibrte_pdump%2Frte_pdump.c;h=70de0c48bfdac48d139c7be92728fdacc3a2b2e3;hp=44dcc9531f968f15f468ad3f5160b940a72537a8;hb=339341e8e126a34381861b7347a8ad4ffb9cb293;hpb=7e9b25a738dc722c6db43c650311d9908f5bd15d diff --git a/lib/librte_pdump/rte_pdump.c b/lib/librte_pdump/rte_pdump.c index 44dcc9531f..70de0c48bf 100644 --- a/lib/librte_pdump/rte_pdump.c +++ b/lib/librte_pdump/rte_pdump.c @@ -577,11 +577,12 @@ rte_pdump_init(const char *path) } /* create the host thread to wait/handle pdump requests */ - ret = pthread_create(&pdump_thread, NULL, pdump_thread_main, NULL); + ret = rte_ctrl_thread_create(&pdump_thread, NULL, + pdump_thread_main, NULL); if (ret != 0) { RTE_LOG(ERR, PDUMP, "Failed to create the pdump thread:%s, %s:%d\n", - strerror(ret), __func__, __LINE__); + strerror(-ret), __func__, __LINE__); return -1; } /* Set thread_name for aid in debugging. */