ACPICA: Add new interfaces for BIOS(firmware) errors and warnings
These new interfaces will be deployed across ACPICA in order to point a finger directly at any detected BIOS issues -- such as issues with ACPI tables, etc. https://www.acpica.org/bugzilla/show_bug.cgi?id=843 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
bc7db14539
commit
62cdd14191
@ -82,6 +82,8 @@ extern FILE *acpi_gbl_output_file;
|
|||||||
#define ACPI_MSG_EXCEPTION "ACPI Exception: "
|
#define ACPI_MSG_EXCEPTION "ACPI Exception: "
|
||||||
#define ACPI_MSG_WARNING "ACPI Warning: "
|
#define ACPI_MSG_WARNING "ACPI Warning: "
|
||||||
#define ACPI_MSG_INFO "ACPI: "
|
#define ACPI_MSG_INFO "ACPI: "
|
||||||
|
#define ACPI_MSG_BIOS_ERROR "ACPI BIOS Bug: Error: "
|
||||||
|
#define ACPI_MSG_BIOS_WARNING "ACPI BIOS Bug: Warning: "
|
||||||
/*
|
/*
|
||||||
* Common message suffix
|
* Common message suffix
|
||||||
*/
|
*/
|
||||||
@ -218,6 +220,72 @@ acpi_info(const char *module_name, u32 line_number, const char *format, ...)
|
|||||||
|
|
||||||
ACPI_EXPORT_SYMBOL(acpi_info)
|
ACPI_EXPORT_SYMBOL(acpi_info)
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
*
|
||||||
|
* FUNCTION: acpi_bios_error
|
||||||
|
*
|
||||||
|
* PARAMETERS: module_name - Caller's module name (for error output)
|
||||||
|
* line_number - Caller's line number (for error output)
|
||||||
|
* format - Printf format string + additional args
|
||||||
|
*
|
||||||
|
* RETURN: None
|
||||||
|
*
|
||||||
|
* DESCRIPTION: Print "ACPI Firmware Error" message with module/line/version
|
||||||
|
* info
|
||||||
|
*
|
||||||
|
******************************************************************************/
|
||||||
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
|
acpi_bios_error(const char *module_name,
|
||||||
|
u32 line_number, const char *format, ...)
|
||||||
|
{
|
||||||
|
va_list arg_list;
|
||||||
|
|
||||||
|
ACPI_MSG_REDIRECT_BEGIN;
|
||||||
|
acpi_os_printf(ACPI_MSG_BIOS_ERROR);
|
||||||
|
|
||||||
|
va_start(arg_list, format);
|
||||||
|
acpi_os_vprintf(format, arg_list);
|
||||||
|
ACPI_MSG_SUFFIX;
|
||||||
|
va_end(arg_list);
|
||||||
|
|
||||||
|
ACPI_MSG_REDIRECT_END;
|
||||||
|
}
|
||||||
|
|
||||||
|
ACPI_EXPORT_SYMBOL(acpi_bios_error)
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
*
|
||||||
|
* FUNCTION: acpi_bios_warning
|
||||||
|
*
|
||||||
|
* PARAMETERS: module_name - Caller's module name (for error output)
|
||||||
|
* line_number - Caller's line number (for error output)
|
||||||
|
* format - Printf format string + additional args
|
||||||
|
*
|
||||||
|
* RETURN: None
|
||||||
|
*
|
||||||
|
* DESCRIPTION: Print "ACPI Firmware Warning" message with module/line/version
|
||||||
|
* info
|
||||||
|
*
|
||||||
|
******************************************************************************/
|
||||||
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
|
acpi_bios_warning(const char *module_name,
|
||||||
|
u32 line_number, const char *format, ...)
|
||||||
|
{
|
||||||
|
va_list arg_list;
|
||||||
|
|
||||||
|
ACPI_MSG_REDIRECT_BEGIN;
|
||||||
|
acpi_os_printf(ACPI_MSG_BIOS_WARNING);
|
||||||
|
|
||||||
|
va_start(arg_list, format);
|
||||||
|
acpi_os_vprintf(format, arg_list);
|
||||||
|
ACPI_MSG_SUFFIX;
|
||||||
|
va_end(arg_list);
|
||||||
|
|
||||||
|
ACPI_MSG_REDIRECT_END;
|
||||||
|
}
|
||||||
|
|
||||||
|
ACPI_EXPORT_SYMBOL(acpi_bios_warning)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The remainder of this module contains internal error functions that may
|
* The remainder of this module contains internal error functions that may
|
||||||
* be configured out.
|
* be configured out.
|
||||||
|
@ -213,6 +213,8 @@
|
|||||||
#define ACPI_WARNING(plist) acpi_warning plist
|
#define ACPI_WARNING(plist) acpi_warning plist
|
||||||
#define ACPI_EXCEPTION(plist) acpi_exception plist
|
#define ACPI_EXCEPTION(plist) acpi_exception plist
|
||||||
#define ACPI_ERROR(plist) acpi_error plist
|
#define ACPI_ERROR(plist) acpi_error plist
|
||||||
|
#define ACPI_BIOS_WARNING(plist) acpi_bios_warning plist
|
||||||
|
#define ACPI_BIOS_ERROR(plist) acpi_bios_error plist
|
||||||
#define ACPI_DEBUG_OBJECT(obj,l,i) acpi_ex_do_debug_object(obj,l,i)
|
#define ACPI_DEBUG_OBJECT(obj,l,i) acpi_ex_do_debug_object(obj,l,i)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@ -223,6 +225,8 @@
|
|||||||
#define ACPI_WARNING(plist)
|
#define ACPI_WARNING(plist)
|
||||||
#define ACPI_EXCEPTION(plist)
|
#define ACPI_EXCEPTION(plist)
|
||||||
#define ACPI_ERROR(plist)
|
#define ACPI_ERROR(plist)
|
||||||
|
#define ACPI_BIOS_WARNING(plist)
|
||||||
|
#define ACPI_BIOS_ERROR(plist)
|
||||||
#define ACPI_DEBUG_OBJECT(obj,l,i)
|
#define ACPI_DEBUG_OBJECT(obj,l,i)
|
||||||
|
|
||||||
#endif /* ACPI_NO_ERROR_MESSAGES */
|
#endif /* ACPI_NO_ERROR_MESSAGES */
|
||||||
|
@ -529,6 +529,14 @@ void ACPI_INTERNAL_VAR_XFACE
|
|||||||
acpi_info(const char *module_name,
|
acpi_info(const char *module_name,
|
||||||
u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
|
u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
|
||||||
|
|
||||||
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
|
acpi_bios_error(const char *module_name,
|
||||||
|
u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
|
||||||
|
|
||||||
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
|
acpi_bios_warning(const char *module_name,
|
||||||
|
u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Debug output
|
* Debug output
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user