The commit
83b41136934 (add unique name to devices) didn't compile if
CONFIG_RTE_LIBRTE_ETHDEV_DEBUG is enabled.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
rte_eth_dev_data_alloc();
if (rte_eth_dev_allocated(name) != NULL) {
rte_eth_dev_data_alloc();
if (rte_eth_dev_allocated(name) != NULL) {
- PMD_DEBUG_TRACE("Ethernet Device with name %s already allocated!\n");
+ PMD_DEBUG_TRACE("Ethernet Device with name %s already allocated!\n", name);