src/add-ons/kernel/bus_managers/acpi/acpica/components/parser/psxface.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDebugTrace
 *
 * PARAMETERS:  MethodName      - Valid ACPI name string
 *              DebugLevel      - Optional level mask. 0 to use default
 *              DebugLayer      - Optional layer mask. 0 to use default
 *              Flags           - bit 1: one shot(1) or persistent(0)
 *
 * RETURN:      Status
 *
 * DESCRIPTION: External interface to enable debug tracing during control
 *              method execution
 *
 ******************************************************************************/
AcpiDebugTrace
PARAMETERS:  MethodName      - Valid ACPI name string
DebugLevel      - Optional level mask. 0 to use default
DebugLayer      - Optional layer mask. 0 to use default
Flags           - bit 1: one shot(1) or persistent(0)

Status

External interface to enable debug tracing during control
method execution
AcpiDebugTrace PARAMETERS : MethodName - Valid ACPI name string DebugLevel - Optional level mask . 0 to use default DebugLayer - Optional layer mask . 0 to use default Flags - bit 1 : one shot ( 1 ) or persistent ( 0 ) Status External interface to enable debug tracing during control method execution
ACPI_STATUS
AcpiDebugTrace (
    const char              *Name,
    UINT32                  DebugLevel,
    UINT32                  DebugLayer,
    UINT32                  Flags)
{
    ACPI_STATUS             Status;
    Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
    if (ACPI_FAILURE (Status))
    {
        return (Status);
    }
    AcpiGbl_TraceMethodName = Name;
    AcpiGbl_TraceFlags = Flags;
    AcpiGbl_TraceDbgLevel = DebugLevel;
    AcpiGbl_TraceDbgLayer = DebugLayer;
    Status = AE_OK;
    (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
    return (Status);
}
ACPI_STATUS AcpiDebugTrace ( const char * Name , UINT32 DebugLevel , UINT32 DebugLayer , UINT32 Flags ) { ACPI_STATUS Status ; Status = AcpiUtAcquireMutex ( ACPI_MTX_NAMESPACE ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } AcpiGbl_TraceMethodName = Name ; AcpiGbl_TraceFlags = Flags ; AcpiGbl_TraceDbgLevel = DebugLevel ; AcpiGbl_TraceDbgLayer = DebugLayer ; Status = AE_OK ; ( void ) AcpiUtReleaseMutex ( ACPI_MTX_NAMESPACE ) ; return ( Status ) ; }
FUNCTION:    AcpiDebugTrace
 PARAMETERS:  MethodName      - Valid ACPI name string
              DebugLevel      - Optional level mask.
FUNCTION : AcpiDebugTrace PARAMETERS : MethodName - Valid ACPI name string DebugLevel - Optional level mask .