From: Thomas Monjalon Date: Wed, 2 Jul 2014 13:10:10 +0000 (+0200) Subject: ethdev: fix build of named allocation debug X-Git-Tag: spdx-start~10551 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bcc733c4780a007f56564277a79309c427367cc2;p=dpdk.git 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 Acked-by: Bruce Richardson --- diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 8dccc6f00c..fd1010a0d2 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; }