[dpdk-stable] [PATCH 17.11] net/sfc: fix port ID log

Andrew Rybchenko arybchenko at solarflare.com
Mon Mar 11 09:44:16 CET 2019


From: Ivan Malov <ivan.malov at oktetlabs.ru>

[ backported from upstream commit 5a88b9b3f0ca0578779c3efad2e362c8770353b4 ]

Log port ID as 16-bit unsigned integer.

Fixes: f8244c6399d9 ("ethdev: increase port id range")

Signed-off-by: Ivan Malov <ivan.malov at oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
 drivers/net/sfc/sfc_log.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/sfc/sfc_log.h b/drivers/net/sfc/sfc_log.h
index b1a9df4..0c82b93 100644
--- a/drivers/net/sfc/sfc_log.h
+++ b/drivers/net/sfc/sfc_log.h
@@ -38,7 +38,8 @@
 		const struct sfc_adapter *__sa = (sa);			\
 									\
 		RTE_LOG(level, PMD,					\
-			RTE_FMT("sfc_efx " PCI_PRI_FMT " #%" PRIu8 ": "	\
+			RTE_FMT("PMD: sfc_efx "				\
+				PCI_PRI_FMT " #%" PRIu16		\
 				RTE_FMT_HEAD(__VA_ARGS__,) "\n",	\
 				__sa->pci_addr.domain,			\
 				__sa->pci_addr.bus,			\
-- 
1.8.3.1



More information about the stable mailing list