[PATCH v6 11/16] PCI/AER: Check log level once and remember it

Weinan Liu
2025-05-19T23:17:30Z

> diff --git a/drivers/pci/pcie/dpc.c b/drivers/pci/pcie/dpc.c
> index 315bf2bfd570..34af0ea45c0d 100644
> --- a/drivers/pci/pcie/dpc.c
> +++ b/drivers/pci/pcie/dpc.c
> @@ -252,6 +252,7 @@ static int dpc_get_aer_uncorrect_severity(struct pci_dev *dev,
> else
> info->severity = AER_NONFATAL;
>
> + info->level = KERN_WARNING;
> return 1;
> }

I think the print level should be KERN_ERR for uncorrectable errors.