[dpdk-dev] [PATCH v1] [net/pcap] fix the NUMA id display in logs.
Vipin Varghese
vipin.varghese at intel.com
Fri Dec 22 05:38:20 CET 2017
On single NUMA device the log information shows as boundary value
instead of -1. The change brings in unsinged to signed.
Signed-off-by: Vipin Varghese <vipin.varghese at intel.com>
---
drivers/net/pcap/rte_eth_pcap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c
index 5a86752..f2f1e44 100644
--- a/drivers/net/pcap/rte_eth_pcap.c
+++ b/drivers/net/pcap/rte_eth_pcap.c
@@ -806,7 +806,7 @@ struct pmd_devargs {
const char *name;
name = rte_vdev_device_name(vdev);
- RTE_LOG(INFO, PMD, "Creating pcap-backed ethdev on numa socket %u\n",
+ RTE_LOG(INFO, PMD, "Creating pcap-backed ethdev on numa socket %d\n",
numa_node);
/* now do all data allocation - for eth_dev structure
@@ -1036,7 +1036,7 @@ struct pmd_devargs {
{
struct rte_eth_dev *eth_dev = NULL;
- RTE_LOG(INFO, PMD, "Closing pcap ethdev on numa socket %u\n",
+ RTE_LOG(INFO, PMD, "Closing pcap ethdev on numa socket %d\n",
rte_socket_id());
if (!dev)
--
1.9.1
More information about the dev
mailing list