Commit 1ce28c32 authored by Lv Zheng's avatar Lv Zheng Committed by Rafael J. Wysocki

ACPICA: OSL: Add configurability for debug output functions.

This patch extends ACPI_HW_DEPENDENT_x mechanism to all debugging output
related functions so that the OSPMs can have full control to configure
them into stub functions.

This patch doesn't include code for Linux to use this new mechanism, thus
no functional change.  Lv Zheng.
Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 407e22af
...@@ -255,6 +255,21 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running); ...@@ -255,6 +255,21 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running);
#endif /* ACPI_NO_ERROR_MESSAGES */ #endif /* ACPI_NO_ERROR_MESSAGES */
/*
* Debugging-output prototypes. All interfaces that use these macros will
* be configured out of the ACPICA build if the ACPI_DEBUG_OUTPUT flag is
* not defined.
*/
#ifdef ACPI_DEBUG_OUTPUT
#define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \
prototype;
#else
#define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \
static ACPI_INLINE prototype {return;}
#endif /* ACPI_DEBUG_OUTPUT */
/* /*
* Initialization * Initialization
*/ */
...@@ -716,22 +731,20 @@ ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) ...@@ -716,22 +731,20 @@ ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
/* /*
* Debug output * Debug output
*/ */
#ifdef ACPI_DEBUG_OUTPUT ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6)
ACPI_PRINTF_LIKE(6) void ACPI_INTERNAL_VAR_XFACE
void ACPI_INTERNAL_VAR_XFACE acpi_debug_print(u32 requested_debug_level,
acpi_debug_print(u32 requested_debug_level, u32 line_number,
u32 line_number, const char *function_name,
const char *function_name, const char *module_name,
const char *module_name, u32 component_id,
u32 component_id, const char *format, ...); const char *format, ...))
ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6)
ACPI_PRINTF_LIKE(6) void ACPI_INTERNAL_VAR_XFACE
void ACPI_INTERNAL_VAR_XFACE acpi_debug_print_raw(u32 requested_debug_level,
acpi_debug_print_raw(u32 requested_debug_level, u32 line_number,
u32 line_number, const char *function_name,
const char *function_name, const char *module_name,
const char *module_name, u32 component_id,
u32 component_id, const char *format, ...); const char *format, ...))
#endif
#endif /* __ACXFACE_H__ */ #endif /* __ACXFACE_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment