From: Ivan Malov Date: Thu, 7 Feb 2019 12:17:24 +0000 (+0000) Subject: net/sfc: log port ID as 16-bit unsigned integer on panic X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5e48db8c53cf2b6de1c944c392f33bc60e414c17;p=dpdk.git net/sfc: log port ID as 16-bit unsigned integer on panic Fixes: f8244c6399d9 ("ethdev: increase port id range") Cc: stable@dpdk.org Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_debug.h b/drivers/net/sfc/sfc_debug.h index 6b600ff4d5..62f3937e8a 100644 --- a/drivers/net/sfc/sfc_debug.h +++ b/drivers/net/sfc/sfc_debug.h @@ -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); \