summaryrefslogtreecommitdiff
path: root/sys/contrib/dev/acpica/dbexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/dbexec.c')
-rw-r--r--sys/contrib/dev/acpica/dbexec.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/contrib/dev/acpica/dbexec.c b/sys/contrib/dev/acpica/dbexec.c
index af1d8849a965e..552d9ef79bdd1 100644
--- a/sys/contrib/dev/acpica/dbexec.c
+++ b/sys/contrib/dev/acpica/dbexec.c
@@ -1,7 +1,7 @@
/*******************************************************************************
*
* Module Name: dbexec - debugger control method execution
- * $Revision: 16 $
+ * $Revision: 18 $
*
******************************************************************************/
@@ -291,18 +291,21 @@ AcpiDbExecute (
UINT32 Flags)
{
ACPI_STATUS Status;
+ ACPI_BUFFER ReturnObj;
+
+
+#ifdef ACPI_DEBUG
UINT32 PreviousAllocations;
UINT32 PreviousSize;
UINT32 Allocations;
UINT32 Size;
- ACPI_BUFFER ReturnObj;
/* Memory allocation tracking */
PreviousAllocations = AcpiGbl_CurrentAllocCount;
PreviousSize = AcpiGbl_CurrentAllocSize;
-
+#endif
Info.Name = Name;
Info.Args = Args;
@@ -312,6 +315,8 @@ AcpiDbExecute (
Status = AcpiDbExecuteMethod (&Info, &ReturnObj);
+#ifdef ACPI_DEBUG
+
/* Memory allocation tracking */
Allocations = AcpiGbl_CurrentAllocCount - PreviousAllocations;
@@ -324,7 +329,7 @@ AcpiDbExecute (
AcpiOsPrintf ("Outstanding: %ld allocations of total size %ld after execution\n",
Allocations, Size);
}
-
+#endif
if (ACPI_FAILURE (Status))
{