local_log_level = rte_log_get_level(dpaa2_logtype_bus);
if (global_log_level == RTE_LOG_DEBUG ||
local_log_level == RTE_LOG_DEBUG) {
- DPAA2_BUS_DEBUG("List of devices scanned on bus:");
+ DPAA2_BUS_LOG(DEBUG, "List of devices scanned on bus:");
TAILQ_FOREACH(dev, &rte_fslmc_bus.device_list, next) {
- DPAA2_BUS_DEBUG("%s", dev->device.name);
+ DPAA2_BUS_LOG(DEBUG, "\t\t%s", dev->device.name);
}
}
}
goto MC_FAILURE;
}
- DPAA2_BUS_DEBUG("Region offset = 0x%"PRIx64" , region size = %"PRIu64"",
- (uint64_t)reg_info.offset, (uint64_t)reg_info.size);
-
v_addr = (size_t)mmap(NULL, reg_info.size,
PROT_WRITE | PROT_READ, MAP_SHARED,
mc_fd, reg_info.offset);
break;
}
- DPAA2_BUS_DEBUG("Device (%s) abstracted from VFIO",
- dev->device.name);
+ DPAA2_BUS_LOG(DEBUG, "Device (%s) abstracted from VFIO",
+ dev->device.name);
return 0;
}
return -1;
}
- DPAA2_BUS_DEBUG("Allocated DPIO Portal[%p]", dpio_dev->dpio);
dpio_dev->dpio->regs = dpio_dev->mc_portal;
if (dpio_open(dpio_dev->dpio, CMD_PRI_LOW, dpio_dev->hw_id,
&dpio_dev->token)) {
eth_dev->rx_pkt_burst = dpaa2_dev_prefetch_rx;
eth_dev->tx_pkt_burst = dpaa2_dev_tx;
- DPAA2_PMD_INFO("%s: netdev created", eth_dev->data->name);
+ RTE_LOG(INFO, PMD, "%s: netdev created\n", eth_dev->data->name);
return 0;
init_err:
dpaa2_dev_uninit(eth_dev);