From 06ab77ea7d9ba90f3b02f8eb791408b8c8033f52 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 19:01:50 +0000 Subject: [PATCH] compile out fns completely if TRACE_ALLOC not defines date 2001.01.22.18.47.00; author agrover; state Exp; --- source/components/utilities/utalloc.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/source/components/utilities/utalloc.c b/source/components/utilities/utalloc.c index 1fd56ef04..75660b839 100644 --- a/source/components/utilities/utalloc.c +++ b/source/components/utilities/utalloc.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: cmalloc - local memory allocation routines - * $Revision: 1.83 $ + * $Revision: 1.84 $ * *****************************************************************************/ @@ -453,7 +453,6 @@ Cleanup: return_VOID; } -#endif /* #ifdef ACPI_DEBUG_TRACK_ALLOCATIONS */ /***************************************************************************** @@ -475,8 +474,6 @@ AcpiCmDumpAllocationInfo ( FUNCTION_TRACE ("CmDumpAllocationInfo"); -#ifdef ACPI_DEBUG_TRACK_ALLOCATIONS - DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES, ("%30s: %4d (%3d Kb)\n", "Current allocations", AcpiGbl_CurrentAllocCount, @@ -517,8 +514,6 @@ AcpiCmDumpAllocationInfo ( AcpiGbl_RunningAllocCount, ROUND_UP_TO_1K (AcpiGbl_RunningAllocSize))); -#endif - return_VOID; } @@ -541,8 +536,6 @@ AcpiCmDumpCurrentAllocations ( UINT32 Component, NATIVE_CHAR *Module) { -#ifdef ACPI_DEBUG_TRACK_ALLOCATIONS - ALLOCATION_INFO *Element = AcpiGbl_HeadAllocPtr; UINT32 i; @@ -624,11 +617,9 @@ AcpiCmDumpCurrentAllocations ( return_VOID; -#else - return; -#endif -} +} +#endif /* #ifdef ACPI_DEBUG_TRACK_ALLOCATIONS */ /***************************************************************************** *