ethdev: fix build of named allocation debug
authorThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 2 Jul 2014 13:10:10 +0000 (15:10 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 2 Jul 2014 20:32:26 +0000 (22:32 +0200)
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>
lib/librte_ether/rte_ethdev.c

index 8dccc6f..fd1010a 100644 (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;
        }