* [PATCH] bus/pci: print the return value when probe failed
@ 2025-08-28 3:00 Xingui Yang
0 siblings, 0 replies; only message in thread
From: Xingui Yang @ 2025-08-28 3:00 UTC (permalink / raw)
To: dev; +Cc: chenbox, nipun.gupta, stephen, huangdengdui
The return value is not printed when probe failed, and it is not
convenient for locating the problem, so add it.
Signed-off-by: Xingui Yang <yangxingui@huawei.com>
---
drivers/bus/pci/pci_common.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c
index c88634f790..adef4c16e1 100644
--- a/drivers/bus/pci/pci_common.c
+++ b/drivers/bus/pci/pci_common.c
@@ -410,9 +410,9 @@ pci_probe(void)
ret = pci_probe_all_drivers(dev);
if (ret < 0) {
if (ret != -EEXIST) {
- PCI_LOG(ERR, "Requested device " PCI_PRI_FMT " cannot be used",
- dev->addr.domain, dev->addr.bus,
- dev->addr.devid, dev->addr.function);
+ PCI_LOG(ERR, "Requested device " PCI_PRI_FMT " cannot be used, ret = %d",
+ dev->addr.domain, dev->addr.bus, dev->addr.devid,
+ dev->addr.function, ret);
rte_errno = errno;
failed++;
}
--
2.33.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-28 3:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-28 3:00 [PATCH] bus/pci: print the return value when probe failed Xingui Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).