]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ACPI: PCI: IRQ: Consolidate printing diagnostic messages
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 19 Feb 2021 18:15:27 +0000 (19:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Mar 2021 15:51:08 +0000 (16:51 +0100)
commitbf5144a612f31baaf2cb2294dc92dd19d461ca67
tree06073ac4e13a3502c8df64370c72b0fed2abba18
parenta38fd8748464831584a19438cbb3082b5a2dab15
ACPI: PCI: IRQ: Consolidate printing diagnostic messages

The code in pci_irq.c prints diagnostic messages using different
and inconsistent methods.  The majority of them are printed with
the help of the dev_*() familiy of logging functions, but
ACPI_DEBUG_PRINT() and ACPI_DEBUG_PRINT_RAW() are still used in
some places which requires the ACPICA debug to be enabled
additionally which is a nuisance and one message is printed
using the raw printk().

To consolidate the printing of messages in that code, convert all of
the ACPI_DEBUG_PRINT() instances in it into dev_dbg(), which is
consistent with the way the other messages are printed by it,
replace the only ACPI_DEBUG_PRINT_RAW() instance with pr_debug() and
make it use pr_warn() istead of printk(KERN_WARNING ).

Also add a pr_fmt() definition to that file and drop the
_COMPONENT and ACPI_MODULE_NAME() definitions that are not used
any more after the above changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
drivers/acpi/pci_irq.c