compile out fns completely if TRACE_ALLOC not defines

date	2001.01.22.18.47.00;	author agrover;	state Exp;
This commit is contained in:
aystarik 2005-06-29 19:01:50 +00:00
parent b99b866c76
commit 06ab77ea7d

View File

@ -1,7 +1,7 @@
/****************************************************************************** /******************************************************************************
* *
* Module Name: cmalloc - local memory allocation routines * Module Name: cmalloc - local memory allocation routines
* $Revision: 1.83 $ * $Revision: 1.84 $
* *
*****************************************************************************/ *****************************************************************************/
@ -453,7 +453,6 @@ Cleanup:
return_VOID; return_VOID;
} }
#endif /* #ifdef ACPI_DEBUG_TRACK_ALLOCATIONS */
/***************************************************************************** /*****************************************************************************
@ -475,8 +474,6 @@ AcpiCmDumpAllocationInfo (
FUNCTION_TRACE ("CmDumpAllocationInfo"); FUNCTION_TRACE ("CmDumpAllocationInfo");
#ifdef ACPI_DEBUG_TRACK_ALLOCATIONS
DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES, DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES,
("%30s: %4d (%3d Kb)\n", "Current allocations", ("%30s: %4d (%3d Kb)\n", "Current allocations",
AcpiGbl_CurrentAllocCount, AcpiGbl_CurrentAllocCount,
@ -517,8 +514,6 @@ AcpiCmDumpAllocationInfo (
AcpiGbl_RunningAllocCount, AcpiGbl_RunningAllocCount,
ROUND_UP_TO_1K (AcpiGbl_RunningAllocSize))); ROUND_UP_TO_1K (AcpiGbl_RunningAllocSize)));
#endif
return_VOID; return_VOID;
} }
@ -541,8 +536,6 @@ AcpiCmDumpCurrentAllocations (
UINT32 Component, UINT32 Component,
NATIVE_CHAR *Module) NATIVE_CHAR *Module)
{ {
#ifdef ACPI_DEBUG_TRACK_ALLOCATIONS
ALLOCATION_INFO *Element = AcpiGbl_HeadAllocPtr; ALLOCATION_INFO *Element = AcpiGbl_HeadAllocPtr;
UINT32 i; UINT32 i;
@ -624,11 +617,9 @@ AcpiCmDumpCurrentAllocations (
return_VOID; return_VOID;
#else
return;
#endif
}
}
#endif /* #ifdef ACPI_DEBUG_TRACK_ALLOCATIONS */
/***************************************************************************** /*****************************************************************************
* *