Update for non-configured ACPI_IS_DEBUG_ENABLED macro.

Also add acoutput.h to the nsdump.c file.
This commit is contained in:
Robert Moore 2012-12-05 13:39:07 -08:00
parent 1f67b264b4
commit df214178a4
2 changed files with 7 additions and 3 deletions

View File

@ -119,6 +119,7 @@
#include "acpi.h"
#include "accommon.h"
#include "acnamesp.h"
#include "acoutput.h"
#define _COMPONENT ACPI_NAMESPACE

View File

@ -342,6 +342,11 @@
#define ACPI_DEBUG_PARAMETERS \
__LINE__, ACPI_GET_FUNCTION_NAME, _AcpiModuleName, _COMPONENT
/* Check if debug output is currently dynamically enabled */
#define ACPI_IS_DEBUG_ENABLED(Level, Component) \
((Level & AcpiDbgLevel) && (Component & AcpiDbgLayer))
/*
* Master debug print macros
* Print message if and only if:
@ -361,9 +366,6 @@
/* Helper macros for DEBUG_PRINT */
#define ACPI_IS_DEBUG_ENABLED(Level, Component) \
((Level & AcpiDbgLevel) && (Component & AcpiDbgLayer))
#define ACPI_DEBUG(Function, Level, Line, Filename, Modulename, Component, ...) \
if (ACPI_IS_DEBUG_ENABLED (Level, Component)) \
{ \
@ -496,6 +498,7 @@
#define ACPI_DUMP_BUFFER(a, b)
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_DEBUG_PRINT_RAW(pl)
#define ACPI_IS_DEBUG_ENABLED(Level, Component) 0
/* Return macros must have a return statement at the minimum */