diff options
-rw-r--r-- | drivers/acpi/acpica/nsdump.c | 1 | ||||
-rw-r--r-- | include/acpi/acoutput.h | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index 3e048794405d..37b0e688a1d8 100644 --- a/drivers/acpi/acpica/nsdump.c +++ b/drivers/acpi/acpica/nsdump.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include <acpi/acpi.h> | 44 | #include <acpi/acpi.h> |
45 | #include "accommon.h" | 45 | #include "accommon.h" |
46 | #include "acnamesp.h" | 46 | #include "acnamesp.h" |
47 | #include <acpi/acoutput.h> | ||
47 | 48 | ||
48 | #define _COMPONENT ACPI_NAMESPACE | 49 | #define _COMPONENT ACPI_NAMESPACE |
49 | ACPI_MODULE_NAME("nsdump") | 50 | ACPI_MODULE_NAME("nsdump") |
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h index c13b351a254d..23db272e0bff 100644 --- a/include/acpi/acoutput.h +++ b/include/acpi/acoutput.h | |||
@@ -266,6 +266,11 @@ | |||
266 | #define ACPI_DEBUG_PARAMETERS \ | 266 | #define ACPI_DEBUG_PARAMETERS \ |
267 | __LINE__, ACPI_GET_FUNCTION_NAME, _acpi_module_name, _COMPONENT | 267 | __LINE__, ACPI_GET_FUNCTION_NAME, _acpi_module_name, _COMPONENT |
268 | 268 | ||
269 | /* Check if debug output is currently dynamically enabled */ | ||
270 | |||
271 | #define ACPI_IS_DEBUG_ENABLED(level, component) \ | ||
272 | ((level & acpi_dbg_level) && (component & acpi_dbg_layer)) | ||
273 | |||
269 | /* | 274 | /* |
270 | * Master debug print macros | 275 | * Master debug print macros |
271 | * Print message if and only if: | 276 | * Print message if and only if: |
@@ -285,9 +290,6 @@ | |||
285 | 290 | ||
286 | /* Helper macros for DEBUG_PRINT */ | 291 | /* Helper macros for DEBUG_PRINT */ |
287 | 292 | ||
288 | #define ACPI_IS_DEBUG_ENABLED(level, component) \ | ||
289 | ((level & acpi_dbg_level) && (component & acpi_dbg_layer)) | ||
290 | |||
291 | #define ACPI_DEBUG(function, level, line, filename, modulename, component, ...) \ | 293 | #define ACPI_DEBUG(function, level, line, filename, modulename, component, ...) \ |
292 | if (ACPI_IS_DEBUG_ENABLED (level, component)) \ | 294 | if (ACPI_IS_DEBUG_ENABLED (level, component)) \ |
293 | { \ | 295 | { \ |
@@ -416,6 +418,7 @@ | |||
416 | #define ACPI_DUMP_BUFFER(a, b) | 418 | #define ACPI_DUMP_BUFFER(a, b) |
417 | #define ACPI_DEBUG_PRINT(pl) | 419 | #define ACPI_DEBUG_PRINT(pl) |
418 | #define ACPI_DEBUG_PRINT_RAW(pl) | 420 | #define ACPI_DEBUG_PRINT_RAW(pl) |
421 | #define ACPI_IS_DEBUG_ENABLED(level, component) 0 | ||
419 | 422 | ||
420 | /* Return macros must have a return statement at the minimum */ | 423 | /* Return macros must have a return statement at the minimum */ |
421 | 424 | ||