From bcc733c4780a007f56564277a79309c427367cc2 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Wed, 2 Jul 2014 15:10:10 +0200 Subject: [PATCH] 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 --- lib/librte_ether/rte_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1