]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ACPICA: Update ACPI_IS_DEBUG_ENABLED macro.
authorBob Moore <robert.moore@intel.com>
Mon, 31 Dec 2012 00:06:21 +0000 (00:06 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Jan 2013 11:36:20 +0000 (12:36 +0100)
Add extra parens to allow use of !ACPI_IS_DEBUG_ENABLED.

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>
include/acpi/acoutput.h

index be014bf7efe5dd05db9fad6340c3623d3f1a9a7d..5ef4e57adc9e73f9dd1df82f5b84418008b65966 100644 (file)
 /* Helper macros for DEBUG_PRINT */
 
 #define ACPI_IS_DEBUG_ENABLED(level, component) \
-       (level & acpi_dbg_level) && (component & acpi_dbg_layer)
+       ((level & acpi_dbg_level) && (component & acpi_dbg_layer))
 
 #define ACPI_DEBUG(function, level, line, filename, modulename, component, ...) \
        if (ACPI_IS_DEBUG_ENABLED (level, component)) \