FreeBSD/sys/contrib/dev/acpica/components/dispatcher/dsdebug.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDsPrintNodePathname
 *
 * PARAMETERS:  Node            - Object
 *              Message         - Prefix message
 *
 * DESCRIPTION: Print an object's full namespace pathname
 *              Manages allocation/freeing of a pathname buffer
 *
 ******************************************************************************/
AcpiDsPrintNodePathname
PARAMETERS:  Node            - Object
Message         - Prefix message

Print an object's full namespace pathname
Manages allocation/freeing of a pathname buffer
AcpiDsPrintNodePathname PARAMETERS : Node - Object Message - Prefix message Print an object ' s full namespace pathname Manages allocation / freeing of a pathname buffer
static void
AcpiDsPrintNodePathname (
    ACPI_NAMESPACE_NODE     *Node,
    const char              *Message)
{
    ACPI_BUFFER             Buffer;
    ACPI_STATUS             Status;
    ACPI_FUNCTION_TRACE (DsPrintNodePathname);
    if (!Node)
    {
        ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DISPATCH, "[NULL NAME]"));
        return_VOID;
    }
    Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
    Status = AcpiNsHandleToPathname (Node, &Buffer, TRUE);
    if (ACPI_SUCCESS (Status))
    {
        if (Message)
        {
            ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DISPATCH, "%s ", Message));
        }
        ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DISPATCH, "[%s] (Node %p)",
            (char *) Buffer.Pointer, Node));
        ACPI_FREE (Buffer.Pointer);
    }
    return_VOID;
}
static void AcpiDsPrintNodePathname ( ACPI_NAMESPACE_NODE * Node , const char * Message ) { ACPI_BUFFER Buffer ; ACPI_STATUS Status ; ACPI_FUNCTION_TRACE ( DsPrintNodePathname ) ; if ( ! Node ) { ACPI_DEBUG_PRINT_RAW ( ( ACPI_DB_DISPATCH , " " ) ) ; return_VOID ; } Buffer . Length = ACPI_ALLOCATE_LOCAL_BUFFER ; Status = AcpiNsHandleToPathname ( Node , & Buffer , TRUE ) ; if ( ACPI_SUCCESS ( Status ) ) { if ( Message ) { ACPI_DEBUG_PRINT_RAW ( ( ACPI_DB_DISPATCH , " " , Message ) ) ; } ACPI_DEBUG_PRINT_RAW ( ( ACPI_DB_DISPATCH , " " , ( char * ) Buffer . Pointer , Node ) ) ; ACPI_FREE ( Buffer . Pointer ) ; } return_VOID ; }
FUNCTION:    AcpiDsPrintNodePathname
 PARAMETERS:  Node            - Object
              Message         - Prefix message
FUNCTION : AcpiDsPrintNodePathname PARAMETERS : Node - Object Message - Prefix message
/* Convert handle to full pathname and print it (with supplied message) */