This patch fixes the issue where device id first 0 does not print.

Fixes: e4f27af0f448 ("bus/pci: reduce boot-up logs to absolute minimum")
Cc: sta...@dpdk.org

Signed-off-by: Qiming Yang <qiming.y...@intel.com>
---
 drivers/bus/pci/pci_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c
index 52404ab0fe..6605d0647d 100644
--- a/drivers/bus/pci/pci_common.c
+++ b/drivers/bus/pci/pci_common.c
@@ -304,7 +304,7 @@ rte_pci_probe_one_driver(struct rte_pci_driver *dr,
                }
        }
 
-       RTE_LOG(INFO, EAL, "Probe PCI driver: %s (%x:%x) device: "PCI_PRI_FMT" 
(socket %i)\n",
+       RTE_LOG(INFO, EAL, "Probe PCI driver: %s (%x:%04x) device: 
"PCI_PRI_FMT" (socket %i)\n",
                        dr->driver.name, dev->id.vendor_id, dev->id.device_id,
                        loc->domain, loc->bus, loc->devid, loc->function,
                        dev->device.numa_node);
-- 
2.25.1

Reply via email to