Skip to content

Commit 4625d75

Browse files
Lv Zhengrafaeljw
authored andcommitted
ACPI: EC: Fix EC command visibility for dynamic debug
acpi_ec_cmd_string() currently is only enabled for "DEBUG" macro, but users trend to use CONFIG_DYNAMIC_DEBUG and enable ec.c pr_debug() print-outs by "dyndbg='file ec.c +p'". In this use case, all command names are turned into UNDEF and the log is confusing. This affects bugzilla triage work. This patch fixes this issue by enabling acpi_ec_cmd_string() for CONFIG_DYNAMIC_DEBUG. Tested-by: Wang Wendy <[email protected]> Tested-by: Feng Chenzhou <[email protected]> Signed-off-by: Lv Zheng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 1ab69f2 commit 4625d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/ec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ static inline void acpi_ec_write_data(struct acpi_ec *ec, u8 data)
316316
ec->timestamp = jiffies;
317317
}
318318

319-
#ifdef DEBUG
319+
#if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG)
320320
static const char *acpi_ec_cmd_string(u8 cmd)
321321
{
322322
switch (cmd) {

0 commit comments

Comments
 (0)