FreeBSD/sys/contrib/dev/acpica/compiler/aslerror.c
/*******************************************************************************
 *
 * FUNCTION:    AslError
 *
 * PARAMETERS:  Level               - Seriousness (Warning/error, etc.)
 *              MessageId           - Index into global message buffer
 *              Op                  - Parse node where error happened
 *              ExtraMessage        - additional error message
 *
 * RETURN:      None
 *
 * DESCRIPTION: Main error reporting routine for the ASL compiler (all code
 *              except the parser.)
 *
 ******************************************************************************/
AslError
PARAMETERS:  Level               - Seriousness (Warning/error, etc.)
MessageId           - Index into global message buffer
Op                  - Parse node where error happened
ExtraMessage        - additional error message

None

Main error reporting routine for the ASL compiler (all code
except the parser.)
AslError PARAMETERS : Level - Seriousness ( Warning / error etc . ) MessageId - Index into global message buffer Op - Parse node where error happened ExtraMessage - additional error message None Main error reporting routine for the ASL compiler ( all code except the parser . )
void
AslError (
    UINT8                   Level,
    UINT16                  MessageId,
    ACPI_PARSE_OBJECT       *Op,
    char                    *ExtraMessage)
{
    if (Gbl_AllExceptionsDisabled ||
        AslIsExceptionDisabled (Level, MessageId))
    {
        return;
    }
    if (Op)
    {
        AslCommonError (Level, MessageId, Op->Asl.LineNumber,
            Op->Asl.LogicalLineNumber,
            Op->Asl.LogicalByteOffset,
            Op->Asl.Column,
            Op->Asl.Filename, ExtraMessage);
    }
    else
    {
        AslCommonError (Level, MessageId, 0,
            0, 0, 0, NULL, ExtraMessage);
    }
}
void AslError ( UINT8 Level , UINT16 MessageId , ACPI_PARSE_OBJECT * Op , char * ExtraMessage ) { if ( Gbl_AllExceptionsDisabled || AslIsExceptionDisabled ( Level , MessageId ) ) { return ; } if ( Op ) { AslCommonError ( Level , MessageId , Op -> Asl . LineNumber , Op -> Asl . LogicalLineNumber , Op -> Asl . LogicalByteOffset , Op -> Asl . Column , Op -> Asl . Filename , ExtraMessage ) ; } else { AslCommonError ( Level , MessageId , 0 , 0 , 0 , 0 , NULL , ExtraMessage ) ; } }
FUNCTION:    AslError
 PARAMETERS:  Level               - Seriousness (Warning/error, etc.)
FUNCTION : AslError PARAMETERS : Level - Seriousness ( Warning / error etc . )
/* Check if user wants to ignore this exception */