OSDN Git Service

PCI/AER: Unify error bit printing for native and CPER reporting
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Mon, 30 Apr 2018 19:52:15 +0000 (14:52 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 7 May 2018 22:07:21 +0000 (17:07 -0500)
commit5d0b401f4cf7a8fa6be25e83ad9d1075f3f75194
tree5580ff7e4a03cd21c704f73b5a1eab18befe257a
parent60cc43fc888428bb2f18f08997432d426a243338
PCI/AER: Unify error bit printing for native and CPER reporting

AER errors can be reported natively (Linux AER driver fields interrupts and
reads error state directly from hardware) or via the ACPI/APEI/GHES/CPER
path (platform firmware reads error state from hardware and sends it to
Linux via ACPI interfaces).

Previously the same error would produce different output depending on
whether it was reported natively or via ACPI.  The CPER path resulted in
hard-to-understand messages, without a prefix. Instead use
__aer_print_error() for both native AER and CPER to provide a more
consistent log format.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer/aerdrv_errprint.c