Skip to content

Commit

Permalink
bus/pci: fix device ID log
Browse files Browse the repository at this point in the history
[ upstream commit 5019f6c856fbd9663dd83465c11be423c3424e94 ]

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

Fixes: e4f27af ("bus/pci: reduce boot-up logs to absolute minimum")

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
  • Loading branch information
qimingya authored and kevintraynor committed Oct 31, 2023
1 parent 0882f0e commit 13b3789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bus/pci/pci_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,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);
Expand Down

0 comments on commit 13b3789

Please sign in to comment.