ACPI: PCI: Replace direct printk() invocations in pci_link.c
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 19 Feb 2021 18:17:44 +0000 (19:17 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Mar 2021 15:51:09 +0000 (16:51 +0100)
commitde972fd8c456c7d2c19d22f179d853b4d28a7b01
treebaea389a35b0c5bb0f44453abf0bf8e66e45f398
parent866d6cdf353ac81ca0a55d0ad4be91222d856336
ACPI: PCI: Replace direct printk() invocations in pci_link.c

Replace the direct printk() invocations in pci_link.c with (mostly
corresponding) acpi_handle_*() calls relative to the ACPI handle of
the given link device, which allows the AML corresponding to those
messages to be identified more easily, or with pr_*() calls.

While at it, add a pr_fmt() definition ot pci_link.c, make
acpi_pci_link_check_possible() print all messages with
acpi_handle_debug() for consistency and replace the (not-so-
reliable) KERN_CONT-based message line composition in
acpi_pci_link_add() with two pr_info() and a series of
acpi_handle_debug() calls (the latter for the possible IRQs).

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