FreeBSD/sys/contrib/dev/acpica/compiler/aslmessages.c
/*******************************************************************************
 *
 * FUNCTION:    AeDecodeExceptionLevel
 *
 * PARAMETERS:  Level               - The ASL error level to be decoded
 *
 * RETURN:      A string containing the error level text
 *
 * DESCRIPTION: This function validates and translates an ASL error level into
 *              an ASCII string.
 *
 ******************************************************************************/
AeDecodeExceptionLevel
PARAMETERS:  Level               - The ASL error level to be decoded

A string containing the error level text

This function validates and translates an ASL error level into
an ASCII string.
AeDecodeExceptionLevel PARAMETERS : Level - The ASL error level to be decoded A string containing the error level text This function validates and translates an ASL error level into an ASCII string .
const char *
AeDecodeExceptionLevel (
    UINT8                   Level)
{
    if (Level >= ACPI_ARRAY_LENGTH (AslErrorLevel))
    {
        return ("Unknown exception level");
    }
    if (Gbl_VerboseErrors)
    {
        return (AslErrorLevel[Level]);
    }
    return (AslErrorLevelIde[Level]);
}
const char * AeDecodeExceptionLevel ( UINT8 Level ) { if ( Level >= ACPI_ARRAY_LENGTH ( AslErrorLevel ) ) { return ( " " ) ; } if ( Gbl_VerboseErrors ) { return ( AslErrorLevel [ Level ] ) ; } return ( AslErrorLevelIde [ Level ] ) ; }
FUNCTION:    AeDecodeExceptionLevel
 PARAMETERS:  Level               - The ASL error level to be decoded
FUNCTION : AeDecodeExceptionLevel PARAMETERS : Level - The ASL error level to be decoded
/* Range check on Level */ /* Differentiate the string type to be used (IDE is all lower case) */