eal: new function to create control threads
[dpdk.git] / lib / librte_pdump / rte_pdump.c
index 44dcc95..70de0c4 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. */