FreeBSD/sys/contrib/dev/acpica/compiler/dtutils.c
/******************************************************************************
 *
 * FUNCTION:    DtError
 *
 * 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: Common error interface for data table compiler
 *
 *****************************************************************************/
DtError
PARAMETERS:  Level               - Seriousness (Warning/error, etc.)
MessageId           - Index into global message buffer
Op                  - Parse node where error happened
ExtraMessage        - additional error message

None

Common error interface for data table compiler
DtError PARAMETERS : Level - Seriousness ( Warning / error etc . ) MessageId - Index into global message buffer Op - Parse node where error happened ExtraMessage - additional error message None Common error interface for data table compiler
void
DtError (
    UINT8                   Level,
    UINT16                  MessageId,
    DT_FIELD                *FieldObject,
    char                    *ExtraMessage)
{
    if (AslIsExceptionDisabled (Level, MessageId))
    {
        return;
    }
    if (FieldObject)
    {
        AslCommonError (Level, MessageId,
            FieldObject->Line,
            FieldObject->Line,
            FieldObject->ByteOffset,
            FieldObject->Column,
            Gbl_Files[ASL_FILE_INPUT].Filename, ExtraMessage);
    }
    else
    {
        AslCommonError (Level, MessageId, 0,
            0, 0, 0, 0, ExtraMessage);
    }
}
void DtError ( UINT8 Level , UINT16 MessageId , DT_FIELD * FieldObject , char * ExtraMessage ) { if ( AslIsExceptionDisabled ( Level , MessageId ) ) { return ; } if ( FieldObject ) { AslCommonError ( Level , MessageId , FieldObject -> Line , FieldObject -> Line , FieldObject -> ByteOffset , FieldObject -> Column , Gbl_Files [ ASL_FILE_INPUT ] . Filename , ExtraMessage ) ; } else { AslCommonError ( Level , MessageId , 0 , 0 , 0 , 0 , 0 , ExtraMessage ) ; } }
FUNCTION:    DtError
 PARAMETERS:  Level               - Seriousness (Warning/error, etc.)
FUNCTION : DtError PARAMETERS : Level - Seriousness ( Warning / error etc . )
/* Check if user wants to ignore this exception */