mirror of
https://github.com/acpica/acpica/
synced 2025-01-14 21:39:19 +03:00
Update for non-configured ACPI_IS_DEBUG_ENABLED macro.
Also add acoutput.h to the nsdump.c file.
This commit is contained in:
parent
1f67b264b4
commit
df214178a4
@ -119,6 +119,7 @@
|
||||
#include "acpi.h"
|
||||
#include "accommon.h"
|
||||
#include "acnamesp.h"
|
||||
#include "acoutput.h"
|
||||
|
||||
|
||||
#define _COMPONENT ACPI_NAMESPACE
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user