Skip to contentSkip to conversation

bus/pci: fix device ID print

PATCH Applied Qiming Yang 2 participants 2 messages Sep 13, 2023 – Oct 11, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bus/pci: fix device ID print

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

Fixes e4f27af0f448 ("bus/pci: reduce boot-up logs to absolute minimum")
---
 drivers/bus/pci/pci_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/pci/pci_common.c +1 -1
index 52404ab0fe..6605d0647d 100644
@@ -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);
Signature · 1 line
2.25.1