FreeBSD/sys/contrib/dev/acpica/compiler/aslerror.c
/*******************************************************************************
 *
 * FUNCTION:    AslDisableException
 *
 * PARAMETERS:  MessageIdString     - ID to be disabled
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Enter a message ID into the global disabled messages table
 *
 ******************************************************************************/
AslDisableException
PARAMETERS:  MessageIdString     - ID to be disabled

Status

Enter a message ID into the global disabled messages table
AslDisableException PARAMETERS : MessageIdString - ID to be disabled Status Enter a message ID into the global disabled messages table
ACPI_STATUS
AslDisableException (
    char                    *MessageIdString)
{
    UINT32                  MessageId;
    MessageId = (UINT32) strtoul (MessageIdString, NULL, 0);
    if ((MessageId < 2000) || (MessageId > 5999))
    {
        printf ("\"%s\" is not a valid warning/remark ID\n",
            MessageIdString);
        return (AE_BAD_PARAMETER);
    }
    if (Gbl_DisabledMessagesIndex >= ASL_MAX_DISABLED_MESSAGES)
    {
        printf ("Too many messages have been disabled (max %u)\n",
            ASL_MAX_DISABLED_MESSAGES);
        return (AE_LIMIT);
    }
    Gbl_DisabledMessages[Gbl_DisabledMessagesIndex] = MessageId;
    Gbl_DisabledMessagesIndex++;
    return (AE_OK);
}
ACPI_STATUS AslDisableException ( char * MessageIdString ) { UINT32 MessageId ; MessageId = ( UINT32 ) strtoul ( MessageIdString , NULL , 0 ) ; if ( ( MessageId < 2000 ) || ( MessageId > 5999 ) ) { printf ( " \" \" \n " , MessageIdString ) ; return ( AE_BAD_PARAMETER ) ; } if ( Gbl_DisabledMessagesIndex >= ASL_MAX_DISABLED_MESSAGES ) { printf ( " \n " , ASL_MAX_DISABLED_MESSAGES ) ; return ( AE_LIMIT ) ; } Gbl_DisabledMessages [ Gbl_DisabledMessagesIndex ] = MessageId ; Gbl_DisabledMessagesIndex ++ ; return ( AE_OK ) ; }
FUNCTION:    AslDisableException
 PARAMETERS:  MessageIdString     - ID to be disabled
FUNCTION : AslDisableException PARAMETERS : MessageIdString - ID to be disabled
/* Convert argument to an integer and validate it */ /* Insert value into the global disabled message array */