Skip to content

Commit

Permalink
bus/pci: fix device ID log
Browse files Browse the repository at this point in the history
This patch fixes the issue where device ID first 0 does not print.

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

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
  • Loading branch information
qimingya authored and tmonjalo committed Oct 11, 2023
1 parent 30b85ef commit 5019f6c
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 @@ -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);
Expand Down

0 comments on commit 5019f6c

Please sign in to comment.