Imported Upstream version 16.07-rc1
[deb_dpdk.git] / lib / librte_eal / bsdapp / eal / eal.c
index 06bfd4e..a0c8f8c 100644 (file)
@@ -605,7 +605,7 @@ rte_eal_init(int argc, char **argv)
                /* Set thread_name for aid in debugging. */
                snprintf(thread_name, RTE_MAX_THREAD_NAME_LEN,
                                "lcore-slave-%d", i);
-               pthread_set_name_np(lcore_config[i].thread_id, thread_name);
+               rte_thread_setname(lcore_config[i].thread_id, thread_name);
        }
 
        /*