--- acpica-unix-20060608/debugger/dbstats.c.orig Thu Jun 8 16:26:42 2006 +++ acpica-unix-20060608/debugger/dbstats.c Mon Jun 19 15:15:44 2006 @@ -141,9 +141,11 @@ void *Context, void **ReturnValue); +#ifdef ACPI_DBG_TRACK_ALLOCATIONS static void AcpiDbListInfo ( ACPI_MEMORY_LIST *List); +#endif /* @@ -170,7 +172,7 @@ #define CMD_STAT_STACK 6 -#if defined ACPI_DBG_TRACK_ALLOCATIONS || defined ACPI_USE_LOCAL_CACHE +#ifdef ACPI_DBG_TRACK_ALLOCATIONS /******************************************************************************* * @@ -188,10 +190,8 @@ AcpiDbListInfo ( ACPI_MEMORY_LIST *List) { -#ifdef ACPI_DBG_TRACK_ALLOCATIONS UINT32 Outstanding; UINT32 Temp; -#endif AcpiOsPrintf ("\n%s\n", List->ListName); @@ -207,7 +207,6 @@ (List->CurrentDepth * List->ObjectSize)); } -#ifdef ACPI_DBG_TRACK_ALLOCATIONS if (List->MaxDepth > 0) { AcpiOsPrintf ( @@ -236,7 +235,6 @@ List->TotalAllocated, List->TotalFreed, Outstanding, Temp); -#endif } #endif