deps/acpica/source/compiler/dtio.c
/******************************************************************************
 *
 * FUNCTION:    DtWriteFieldToListing
 *
 * PARAMETERS:  Buffer              - Contains the compiled data
 *              Field               - Field node for the input line
 *              Length              - Length of the output data
 *
 * RETURN:      None
 *
 * DESCRIPTION: Write one field to the listing file (if listing is enabled).
 *
 *****************************************************************************/
DtWriteFieldToListing
PARAMETERS:  Buffer              - Contains the compiled data
Field               - Field node for the input line
Length              - Length of the output data

None

Write one field to the listing file (if listing is enabled).
DtWriteFieldToListing PARAMETERS : Buffer - Contains the compiled data Field - Field node for the input line Length - Length of the output data None Write one field to the listing file ( if listing is enabled ) .
void
DtWriteFieldToListing (
    UINT8                   *Buffer,
    DT_FIELD                *Field,
    UINT32                  Length)
{
    UINT8                   FileByte;
    if (!Gbl_ListingFlag || !Field)
    {
        return;
    }
    FlPrintFile (ASL_FILE_LISTING_OUTPUT, "Input:  ");
    FlSeekFile (ASL_FILE_INPUT, Field->ByteOffset);
    while (FlReadFile (ASL_FILE_INPUT, &FileByte, 1) == AE_OK)
    {
        FlWriteFile (ASL_FILE_LISTING_OUTPUT, &FileByte, 1);
        if (FileByte == '\n')
        {
            break;
        }
    }
    FlPrintFile (ASL_FILE_LISTING_OUTPUT, "Parsed: %*s : %.64s",
        Field->Column-4, Field->Name, Field->Value);
    if (strlen (Field->Value) > 64)
    {
        FlPrintFile (ASL_FILE_LISTING_OUTPUT, "...Additional data, length 0x%X\n",
            strlen (Field->Value));
    }
    FlPrintFile (ASL_FILE_LISTING_OUTPUT, "\n");
    DtDumpBuffer (ASL_FILE_LISTING_OUTPUT, Buffer, Field->TableOffset, Length);
}
void DtWriteFieldToListing ( UINT8 * Buffer , DT_FIELD * Field , UINT32 Length ) { UINT8 FileByte ; if ( ! Gbl_ListingFlag || ! Field ) { return ; } FlPrintFile ( ASL_FILE_LISTING_OUTPUT , " " ) ; FlSeekFile ( ASL_FILE_INPUT , Field -> ByteOffset ) ; while ( FlReadFile ( ASL_FILE_INPUT , & FileByte , 1 ) == AE_OK ) { FlWriteFile ( ASL_FILE_LISTING_OUTPUT , & FileByte , 1 ) ; if ( FileByte == ' \n ' ) { break ; } } FlPrintFile ( ASL_FILE_LISTING_OUTPUT , " " , Field -> Column - 4 , Field -> Name , Field -> Value ) ; if ( strlen ( Field -> Value ) > 64 ) { FlPrintFile ( ASL_FILE_LISTING_OUTPUT , " \n " , strlen ( Field -> Value ) ) ; } FlPrintFile ( ASL_FILE_LISTING_OUTPUT , " \n " ) ; DtDumpBuffer ( ASL_FILE_LISTING_OUTPUT , Buffer , Field -> TableOffset , Length ) ; }
FUNCTION:    DtWriteFieldToListing
 PARAMETERS:  Buffer              - Contains the compiled data
              Field               - Field node for the input line
              Length              - Length of the output data
FUNCTION : DtWriteFieldToListing PARAMETERS : Buffer - Contains the compiled data Field - Field node for the input line Length - Length of the output data
/* Dump the original source line */ /* Dump the line as parsed and represented internally */ /* Dump the hex data that will be output for this field */