]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_pdump/rte_pdump.c
eal: new function to create control threads
[dpdk.git] / lib / librte_pdump / rte_pdump.c
index 44dcc9531f968f15f468ad3f5160b940a72537a8..70de0c48bfdac48d139c7be92728fdacc3a2b2e3 100644 (file)
@@ -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. */