]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: EC: Fix EC command visibility for dynamic debug
authorLv Zheng <lv.zheng@intel.com>
Wed, 14 Jun 2017 05:59:18 +0000 (13:59 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 Jun 2017 00:28:22 +0000 (02:28 +0200)
commitee5e0765948d9dd9a42822caac7bbe632cc6db3d
tree5472e436016c950da31f7817b7584a73977cf974
parenta5f33d8dea337b9866cb4dc47b65ae7671ef9e66
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 <wendy.wang@intel.com>
Tested-by: Feng Chenzhou <chenzhoux.feng@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c