sys/contrib/dev/acpica/common/dmtable.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmLineHeader
 *
 * PARAMETERS:  Offset              - Current byte offset, from table start
 *              ByteLength          - Length of the field in bytes, 0 for flags
 *              Name                - Name of this field
 *              Value               - Optional value, displayed on left of ':'
 *
 * RETURN:      None
 *
 * DESCRIPTION: Utility routines for formatting output lines. Displays the
 *              current table offset in hex and decimal, the field length,
 *              and the field name.
 *
 ******************************************************************************/
AcpiDmLineHeader
PARAMETERS:  Offset              - Current byte offset, from table start
ByteLength          - Length of the field in bytes, 0 for flags
Name                - Name of this field
Value               - Optional value, displayed on left of ':'

None

Utility routines for formatting output lines. Displays the
current table offset in hex and decimal, the field length,
and the field name.
AcpiDmLineHeader PARAMETERS : Offset - Current byte offset from table start ByteLength - Length of the field in bytes 0 for flags Name - Name of this field Value - Optional value displayed on left of ' : ' None Utility routines for formatting output lines . Displays the current table offset in hex and decimal the field length and the field name .
void
AcpiDmLineHeader (
    UINT32                  Offset,
    UINT32                  ByteLength,
    char                    *Name)
{
    if (!Name)
    {
        Name = "";
    }
    if (Gbl_DoTemplates && !Gbl_VerboseTemplates) 
    {
        if (ByteLength)
        {
            AcpiOsPrintf ("[%.4d] %34s : ", ByteLength, Name);
        }
        else
        {
            if (*Name)
            {
                AcpiOsPrintf ("%41s : ", Name);
            }
            else
            {
                AcpiOsPrintf ("%41s   ", Name);
            }
        }
    }
    else 
    {
        if (ByteLength)
        {
            AcpiOsPrintf ("[%3.3Xh %4.4d% 4d] %28s : ",
                Offset, Offset, ByteLength, Name);
        }
        else
        {
            if (*Name)
            {
                AcpiOsPrintf ("%44s : ", Name);
            }
            else
            {
                AcpiOsPrintf ("%44s   ", Name);
            }
        }
    }
}
void AcpiDmLineHeader ( UINT32 Offset , UINT32 ByteLength , char * Name ) { if ( ! Name ) { Name = " " ; } if ( Gbl_DoTemplates && ! Gbl_VerboseTemplates ) { if ( ByteLength ) { AcpiOsPrintf ( " " , ByteLength , Name ) ; } else { if ( * Name ) { AcpiOsPrintf ( " " , Name ) ; } else { AcpiOsPrintf ( " " , Name ) ; } } } else { if ( ByteLength ) { AcpiOsPrintf ( " " , Offset , Offset , ByteLength , Name ) ; } else { if ( * Name ) { AcpiOsPrintf ( " " , Name ) ; } else { AcpiOsPrintf ( " " , Name ) ; } } } }
FUNCTION:    AcpiDmLineHeader
 PARAMETERS:  Offset              - Current byte offset, from table start
              ByteLength          - Length of the field in bytes, 0 for flags
              Name                - Name of this field
              Value               - Optional value, displayed on left of ':'
FUNCTION : AcpiDmLineHeader PARAMETERS : Offset - Current byte offset from table start ByteLength - Length of the field in bytes 0 for flags Name - Name of this field Value - Optional value displayed on left of ' : '
/* Allow a null name for fields that span multiple lines (large buffers) */ /* Terse template */ /* Normal disassembler or verbose template */