]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI/ERR: Add printk level to pcie_print_tlp_log()
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 22 May 2025 23:21:19 +0000 (18:21 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 May 2025 16:02:03 +0000 (11:02 -0500)
commit82013ff394ea58fced098a1fdc001b46cc3dd5ee
treed2e0c50668c1dfc813c247da0b4e4a464de47445
parentc8f6791e33a7757025285db26f3b382cdcb7f7cd
PCI/ERR: Add printk level to pcie_print_tlp_log()

aer_print_error() produces output at a printk level (KERN_ERR/KERN_WARNING/
etc) that depends on the kind of error, and it calls pcie_print_tlp_log(),
which previously always produced output at KERN_ERR.

Add a "level" parameter so aer_print_error() can control the level of the
pcie_print_tlp_log() output to match.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/20250522232339.1525671-14-helgaas@kernel.org
drivers/pci/pci.h
drivers/pci/pcie/aer.c
drivers/pci/pcie/dpc.c
drivers/pci/pcie/tlp.c