FreeBSD/sys/contrib/dev/acpica/compiler/dtfield.c
/*******************************************************************************
 *
 * FUNCTION:    DtCompileUuid
 *
 * PARAMETERS:  Buffer              - Output buffer
 *              Field               - String to be copied to buffer
 *              ByteLength          - Maximum length of string
 *
 * RETURN:      None
 *
 * DESCRIPTION: Convert UUID string to 16-byte buffer
 *
 ******************************************************************************/
DtCompileUuid
PARAMETERS:  Buffer              - Output buffer
Field               - String to be copied to buffer
ByteLength          - Maximum length of string

None

Convert UUID string to 16-byte buffer
DtCompileUuid PARAMETERS : Buffer - Output buffer Field - String to be copied to buffer ByteLength - Maximum length of string None Convert UUID string to 16 - byte buffer
static ACPI_STATUS
DtCompileUuid (
    UINT8                   *Buffer,
    DT_FIELD                *Field,
    UINT32                  ByteLength)
{
    char                    *InString;
    ACPI_STATUS             Status;
    InString = Field->Value;
    Status = AuValidateUuid (InString);
    if (ACPI_FAILURE (Status))
    {
        sprintf (MsgBuffer, "%s", Field->Value);
        DtNameError (ASL_ERROR, ASL_MSG_INVALID_UUID, Field, MsgBuffer);
    }
    else
    {
        AcpiUtConvertStringToUuid (InString, Buffer);
    }
    return (Status);
}
static ACPI_STATUS DtCompileUuid ( UINT8 * Buffer , DT_FIELD * Field , UINT32 ByteLength ) { char * InString ; ACPI_STATUS Status ; InString = Field -> Value ; Status = AuValidateUuid ( InString ) ; if ( ACPI_FAILURE ( Status ) ) { sprintf ( MsgBuffer , " " , Field -> Value ) ; DtNameError ( ASL_ERROR , ASL_MSG_INVALID_UUID , Field , MsgBuffer ) ; } else { AcpiUtConvertStringToUuid ( InString , Buffer ) ; } return ( Status ) ; }
FUNCTION:    DtCompileUuid
 PARAMETERS:  Buffer              - Output buffer
              Field               - String to be copied to buffer
              ByteLength          - Maximum length of string
FUNCTION : DtCompileUuid PARAMETERS : Buffer - Output buffer Field - String to be copied to buffer ByteLength - Maximum length of string