Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] PCI/AER: Print error message as per the TODO
@ 2024-04-15 16:10 Abhinav Jain
  2024-04-15 16:19 ` Joe Perches
  2024-06-05 21:23 ` [PATCH v2] " Abhinav Jain
  0 siblings, 2 replies; 5+ messages in thread
From: Abhinav Jain @ 2024-04-15 16:10 UTC (permalink / raw)
  To: mahesh, oohall, bhelgaas, linuxppc-dev, linux-pci, linux-kernel
  Cc: skhan, javier.carrasco.cruz, Abhinav Jain

Add a pr_err() to print the add device error in find_device_iter()

Signed-off-by: Abhinav Jain <jain.abhinav177@gmail.com>
---
 drivers/pci/pcie/aer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
index ac6293c24976..0e1ad2998116 100644
--- a/drivers/pci/pcie/aer.c
+++ b/drivers/pci/pcie/aer.c
@@ -885,7 +885,8 @@ static int find_device_iter(struct pci_dev *dev, void *data)
 		/* List this device */
 		if (add_error_device(e_info, dev)) {
 			/* We cannot handle more... Stop iteration */
-			/* TODO: Should print error message here? */
+			pr_err("find_device_iter: Cannot handle more devices.
+					Stopping iteration");
 			return 1;
 		}
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-05 23:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-15 16:10 [PATCH] PCI/AER: Print error message as per the TODO Abhinav Jain
2024-04-15 16:19 ` Joe Perches
2024-06-05 21:23 ` [PATCH v2] " Abhinav Jain
2024-06-05 21:58   ` Bjorn Helgaas
2024-06-05 23:11     ` Abhinav Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox