From: Ivan Malov Date: Thu, 24 Jan 2019 15:20:16 +0000 (+0000) Subject: net/sfc: fix port ID log X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5a88b9b3f0ca0578779c3efad2e362c8770353b4;p=dpdk.git net/sfc: fix port ID log Log port ID as 16-bit unsigned integer. 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_log.h b/drivers/net/sfc/sfc_log.h index d6f3435244..b11fbfb0a6 100644 --- a/drivers/net/sfc/sfc_log.h +++ b/drivers/net/sfc/sfc_log.h @@ -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, \