FreeBSD/sys/contrib/dev/acpica/compiler/aslerror.c
/*******************************************************************************
 *
 * FUNCTION:    AslIsExceptionDisabled
 *
 * PARAMETERS:  Level               - Seriousness (Warning/error, etc.)
 *              MessageId           - Index into global message buffer
 *
 * RETURN:      TRUE if exception/message should be ignored
 *
 * DESCRIPTION: Check if the user has specified options such that this
 *              exception should be ignored
 *
 ******************************************************************************/
AslIsExceptionDisabled
PARAMETERS:  Level               - Seriousness (Warning/error, etc.)
MessageId           - Index into global message buffer

TRUE if exception/message should be ignored

Check if the user has specified options such that this
exception should be ignored
AslIsExceptionDisabled PARAMETERS : Level - Seriousness ( Warning / error etc . ) MessageId - Index into global message buffer TRUE if exception / message should be ignored Check if the user has specified options such that this exception should be ignored
BOOLEAN
AslIsExceptionDisabled (
    UINT8                   Level,
    UINT16                  MessageId)
{
    UINT32                  EncodedMessageId;
    UINT32                  i;
    switch (Level)
    {
    case ASL_WARNING2:
    case ASL_WARNING3:
        if (Level > Gbl_WarningLevel)
        {
            return (TRUE);
        }
    case ASL_WARNING:
    case ASL_REMARK:
        EncodedMessageId = AeBuildFullExceptionCode (Level, MessageId);
        for (i = 0; i < Gbl_DisabledMessagesIndex; i++)
        {
            if (EncodedMessageId == Gbl_DisabledMessages[i])
            {
                return (TRUE);
            }
        }
        break;
    default:
        break;
    }
    return (FALSE);
}
BOOLEAN AslIsExceptionDisabled ( UINT8 Level , UINT16 MessageId ) { UINT32 EncodedMessageId ; UINT32 i ; switch ( Level ) { case ASL_WARNING2 : case ASL_WARNING3 : if ( Level > Gbl_WarningLevel ) { return ( TRUE ) ; } case ASL_WARNING : case ASL_REMARK : EncodedMessageId = AeBuildFullExceptionCode ( Level , MessageId ) ; for ( i = 0 ; i < Gbl_DisabledMessagesIndex ; i ++ ) { if ( EncodedMessageId == Gbl_DisabledMessages [ i ] ) { return ( TRUE ) ; } } break ; default : break ; } return ( FALSE ) ; }
FUNCTION:    AslIsExceptionDisabled
 PARAMETERS:  Level               - Seriousness (Warning/error, etc.)
FUNCTION : AslIsExceptionDisabled PARAMETERS : Level - Seriousness ( Warning / error etc . )
/* Check for global disable via -w1/-w2/-w3 options */ /* Fall through */ /*
         * Ignore this warning/remark if it has been disabled by
         * the user (-vw option)
         */ /* Simple implementation via fixed array */