Skip to content

Commit 36c5932

Browse files
drobnikbjorn-helgaas
authored andcommitted
PCI/AER: Reduce pci_print_aer() correctable error level to KERN_WARNING
Some existing logs in pci_print_aer() log with error severity by default. Convert them to use KERN_WARNING for correctable errors and KERN_ERR for uncorrectable errors. [bhelgaas: commit log] Signed-off-by: Karolina Stolarek <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Tested-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 82013ff commit 36c5932

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

drivers/pci/pcie/aer.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -787,14 +787,15 @@ void pci_print_aer(struct pci_dev *dev, int aer_severity,
787787
layer = AER_GET_LAYER_ERROR(aer_severity, status);
788788
agent = AER_GET_AGENT(aer_severity, status);
789789

790-
pci_err(dev, "aer_status: 0x%08x, aer_mask: 0x%08x\n", status, mask);
790+
aer_printk(info.level, dev, "aer_status: 0x%08x, aer_mask: 0x%08x\n",
791+
status, mask);
791792
__aer_print_error(dev, &info);
792-
pci_err(dev, "aer_layer=%s, aer_agent=%s\n",
793-
aer_error_layer[layer], aer_agent_string[agent]);
793+
aer_printk(info.level, dev, "aer_layer=%s, aer_agent=%s\n",
794+
aer_error_layer[layer], aer_agent_string[agent]);
794795

795796
if (aer_severity != AER_CORRECTABLE)
796-
pci_err(dev, "aer_uncor_severity: 0x%08x\n",
797-
aer->uncor_severity);
797+
aer_printk(info.level, dev, "aer_uncor_severity: 0x%08x\n",
798+
aer->uncor_severity);
798799

799800
if (tlp_header_valid)
800801
pcie_print_tlp_log(dev, &aer->header_log, info.level,

0 commit comments

Comments
 (0)