[PATCH v7 06/17] PCI/AER: Rename aer_print_port_info() to aer_print_source()
Bjorn Helgaas
helgaas at kernel.org
Wed May 21 07:50:23 AEST 2025
From: Jon Pan-Doh <pandoh at google.com>
Rename aer_print_port_info() to aer_print_source() to be more descriptive.
This logs the Error Source ID logged by a Root Port or Root Complex Event
Collector when it receives an ERR_COR, ERR_NONFATAL, or ERR_FATAL Message.
[bhelgaas: aer_print_rp_info() -> aer_print_source()]
Signed-off-by: Jon Pan-Doh <pandoh at google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas at google.com>
Tested-by: Krzysztof Wilczyński <kwilczynski at kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy at linux.intel.com>
---
drivers/pci/pcie/aer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
index 65f9277c822c..4f2527d9a365 100644
--- a/drivers/pci/pcie/aer.c
+++ b/drivers/pci/pcie/aer.c
@@ -733,8 +733,8 @@ void aer_print_error(struct pci_dev *dev, struct aer_err_info *info)
info->severity, info->tlp_header_valid, &info->tlp);
}
-static void aer_print_port_info(struct pci_dev *dev, struct aer_err_info *info,
- const char *details)
+static void aer_print_source(struct pci_dev *dev, struct aer_err_info *info,
+ const char *details)
{
u16 source = info->id;
@@ -1277,7 +1277,7 @@ static void aer_isr_one_error_type(struct pci_dev *root,
bool found;
found = find_source_device(root, info);
- aer_print_port_info(root, info, found ? "" : " (no details found");
+ aer_print_source(root, info, found ? "" : " (no details found");
if (found)
aer_process_err_devices(info);
}
--
2.43.0
More information about the Linuxppc-dev
mailing list