summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2014-07-02 15:10:10 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-07-02 22:32:26 +0200
commitbcc733c4780a007f56564277a79309c427367cc2 (patch)
tree94017f9cfbe10d67463d1b8ee339a38b097a7d57
parent1656e23d084e8b03afce58a318c268084bc16c27 (diff)
downloaddpdk-bcc733c4780a007f56564277a79309c427367cc2.zip
dpdk-bcc733c4780a007f56564277a79309c427367cc2.tar.gz
dpdk-bcc733c4780a007f56564277a79309c427367cc2.tar.xz
ethdev: fix build of named allocation debug
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>
-rw-r--r--lib/librte_ether/rte_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 8dccc6f..fd1010a 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -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;
}