/* init power management library */
ret = rte_power_init(lcore_id);
if (ret)
- rte_log(RTE_LOG_ERR, RTE_LOGTYPE_POWER,
- "Power management library initialization "
- "failed on core%u", lcore_id);
+ RTE_LOG(ERR, POWER,
+ "Library initialization failed on core %u\n", lcore_id);
/* init timer structures for each enabled lcore */
rte_timer_init(&power_timers[lcore_id]);
rte_eal_tailq_register(struct rte_tailq_elem *t)
{
if (rte_eal_tailq_local_register(t) < 0) {
- rte_log(RTE_LOG_ERR, RTE_LOGTYPE_EAL,
+ RTE_LOG(ERR, EAL,
"%s tailq is already registered\n", t->name);
goto error;
}
if (rte_tailqs_count >= 0) {
rte_eal_tailq_update(t);
if (t->head == NULL) {
- rte_log(RTE_LOG_ERR, RTE_LOGTYPE_EAL,
+ RTE_LOG(ERR, EAL,
"Cannot initialize tailq: %s\n", t->name);
TAILQ_REMOVE(&rte_tailq_elem_head, t, next);
goto error;
* rte_eal_tailq_register and EAL_REGISTER_TAILQ */
rte_eal_tailq_update(t);
if (t->head == NULL) {
- rte_log(RTE_LOG_ERR, RTE_LOGTYPE_EAL,
+ RTE_LOG(ERR, EAL,
"Cannot initialize tailq: %s\n", t->name);
/* no need to TAILQ_REMOVE, we are going to panic in
* rte_eal_init() */