net/sfc: fix port ID log
authorIvan Malov <ivan.malov@oktetlabs.ru>
Thu, 24 Jan 2019 15:20:16 +0000 (15:20 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 24 Jan 2019 18:14:33 +0000 (19:14 +0100)
Log port ID as 16-bit unsigned integer.

Fixes: f8244c6399d9 ("ethdev: increase port id range")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_log.h

index d6f3435..b11fbfb 100644 (file)
@@ -37,7 +37,8 @@ extern uint32_t sfc_logtype_driver;
                const struct sfc_adapter *__sa = (sa);                  \
                                                                        \
                rte_log(level, type,                                    \
-                       RTE_FMT("PMD: 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,                     \