net/sfc: log port ID as 16-bit unsigned integer on panic
authorIvan Malov <ivan.malov@oktetlabs.ru>
Thu, 7 Feb 2019 12:17:24 +0000 (12:17 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 7 Feb 2019 15:06:30 +0000 (16:06 +0100)
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_debug.h

index 6b600ff..62f3937 100644 (file)
@@ -27,7 +27,8 @@
        do {                                                            \
                const struct sfc_adapter *_sa = (sa);                   \
                                                                        \
-               rte_panic("sfc " PCI_PRI_FMT " #%" PRIu8 ": " fmt "\n", \
+               rte_panic("sfc " PCI_PRI_FMT                            \
+                         " #%" PRIu16 ": " fmt "\n",                   \
                          _sa->pci_addr.domain, _sa->pci_addr.bus,      \
                          _sa->pci_addr.devid, _sa->pci_addr.function,  \
                          _sa->port_id, ##args);                        \