Thread (5 messages) 5 messages, 3 authors, 2021-03-04

Re: [PATCH v1] platform: x86: ACPI: Get rid of ACPICA message printing

From: "Rafael J. Wysocki" <rafael@kernel.org>
Date: 2021-03-04 14:17:23
Also in: lkml, platform-driver-x86

On Thu, Mar 4, 2021 at 3:14 PM Hans de Goede [off-list ref] wrote:
Hi,

On 2/24/21 7:41 PM, Rafael J. Wysocki wrote:
quoted
From: Rafael J. Wysocki <redacted>

A few x86 platform drivers use ACPI_DEBUG_PRINT() or ACPI_EXCEPTION()
for printing messages, but that is questionable, because those macros
belong to ACPICA and they should not be used elsewhere.  In addition,
ACPI_DEBUG_PRINT() requires special enabling to allow it to actually
print the message, which is a nuisance, and the _COMPONENT symbol
generally needed for that is not defined in any of the files in
question.

For this reason, replace the ACPI_DEBUG_PRINT() in lg-laptop.c with
pr_debug() and the one in xo15-ebook.c with acpi_handle_debug()
(with the additional benefit that the source object can be identified
more easily after this change), and replace the ACPI_EXCEPTION() in
acer-wmi.c with pr_warn().

Also drop the ACPI_MODULE_NAME() definitions that are only used by
the ACPICA message printing macros from those files and from wmi.c
and surfacepro3_button.c (while at it).

Signed-off-by: Rafael J. Wysocki <redacted>
Thank you.

I've merged this into my review-hans branch now, minus the
acer-wmi.c changes because a similar patch was already merged for those.
Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help