// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: utexcep - Exception code support * ******************************************************************************/ #define EXPORT_ACPI_INTERFACES #define ACPI_DEFINE_EXCEPTION_TABLE #include <acpi/acpi.h> #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME("utexcep") /******************************************************************************* * * FUNCTION: acpi_format_exception * * PARAMETERS: status - The acpi_status code to be formatted * * RETURN: A string containing the exception text. A valid pointer is * always returned. * * DESCRIPTION: This function translates an ACPI exception into an ASCII * string. Returns "unknown status" string for invalid codes. * ******************************************************************************/
const char *acpi_format_exception(acpi_status status) { const struct acpi_exception_info *exception; ACPI_FUNCTION_ENTRY(); exception = acpi_ut_validate_exception(status); if (!exception) { /* Exception code was not recognized */ ACPI_ERROR((AE_INFO, "Unknown exception code: 0x%8.8X", status)); return ("UNKNOWN_STATUS_CODE"); } return (exception->name); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Robert Moore | 57 | 100.00% | 2 | 100.00% |
Total | 57 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Robert Moore | 167 | 100.00% | 2 | 100.00% |
Total | 167 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Robert Moore | 247 | 98.02% | 2 | 50.00% |
Lv Zheng | 3 | 1.19% | 1 | 25.00% |
Erik Schmauss | 2 | 0.79% | 1 | 25.00% |
Total | 252 | 100.00% | 4 | 100.00% |