ethdev: fix build of named allocation debug

The commit 83b4113693 (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>
This commit is contained in:
Thomas Monjalon 2014-07-02 15:10:10 +02:00
parent 1656e23d08
commit bcc733c478

View File

@ -180,7 +180,7 @@ rte_eth_dev_allocate(const char *name)
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);
return NULL;
}