diff options
author | Bob Moore <robert.moore@intel.com> | 2012-12-30 19:06:27 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 06:36:20 -0500 |
commit | 10e9e75926ebec672d8a5031efbb21c938ca1820 (patch) | |
tree | 0de7ec89902675c0d810587813ee92b1fd1aa922 /drivers/acpi/acpica/nsdump.c | |
parent | 27441887599d7929e53eb7044791ae58ea5aec20 (diff) |
ACPICA: Deploy new ACPI_IS_DEBUG_ENABLED macro in debug output code.
Simplifies check for debug output enables.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nsdump.c')
-rw-r--r-- | drivers/acpi/acpica/nsdump.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index 8e6f00370a39..3e048794405d 100644 --- a/drivers/acpi/acpica/nsdump.c +++ b/drivers/acpi/acpica/nsdump.c | |||
@@ -77,8 +77,9 @@ void acpi_ns_print_pathname(u32 num_segments, char *pathname) | |||
77 | 77 | ||
78 | ACPI_FUNCTION_NAME(ns_print_pathname); | 78 | ACPI_FUNCTION_NAME(ns_print_pathname); |
79 | 79 | ||
80 | if (!(acpi_dbg_level & ACPI_LV_NAMES) | 80 | /* Check if debug output enabled */ |
81 | || !(acpi_dbg_layer & ACPI_NAMESPACE)) { | 81 | |
82 | if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_NAMES, ACPI_NAMESPACE)) { | ||
82 | return; | 83 | return; |
83 | } | 84 | } |
84 | 85 | ||
@@ -127,7 +128,7 @@ acpi_ns_dump_pathname(acpi_handle handle, char *msg, u32 level, u32 component) | |||
127 | 128 | ||
128 | /* Do this only if the requested debug level and component are enabled */ | 129 | /* Do this only if the requested debug level and component are enabled */ |
129 | 130 | ||
130 | if (!(acpi_dbg_level & level) || !(acpi_dbg_layer & component)) { | 131 | if (!ACPI_IS_DEBUG_ENABLED(level, component)) { |
131 | return_VOID; | 132 | return_VOID; |
132 | } | 133 | } |
133 | 134 | ||