Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/intel-public/acpica/dist/executer Silence debug...



details:   https://anonhg.NetBSD.org/src/rev/639b0d8a355f
branches:  trunk
changeset: 755945:639b0d8a355f
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Wed Jun 30 06:43:37 2010 +0000

description:
Silence debug messages related to the AML Debug() opcode. To enable it, only
set the AcpiGbl_EnableAmlDebugObject global. Previously this was enabled
also when ACPI_LV_DEBUG_OBJECT was set for AcpiDbgLevel, but this was too
noisy, even for ACPI_DEBUG kernels, when the AML makes heavy use of Debug().

diffstat:

 sys/external/intel-public/acpica/dist/executer/exdebug.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 7aff84bc72bd -r 639b0d8a355f sys/external/intel-public/acpica/dist/executer/exdebug.c
--- a/sys/external/intel-public/acpica/dist/executer/exdebug.c  Wed Jun 30 06:33:52 2010 +0000
+++ b/sys/external/intel-public/acpica/dist/executer/exdebug.c  Wed Jun 30 06:43:37 2010 +0000
@@ -140,10 +140,9 @@
  *
  * This function is not compiled if ACPI_NO_ERROR_MESSAGES is set.
  *
- * This function is only enabled if AcpiGbl_EnableAmlDebugObject is set, or
- * if ACPI_LV_DEBUG_OBJECT is set in the AcpiDbgLevel. Thus, in the normal
- * operational case, stores to the debug object are ignored but can be easily
- * enabled if necessary.
+ * This function is only enabled if AcpiGbl_EnableAmlDebugObject is set.
+ * Thus, in the normal operational case, stores to the debug object are
+ * ignored but can be easily enabled if necessary.
  *
  ******************************************************************************/
 
@@ -159,10 +158,9 @@
     ACPI_FUNCTION_TRACE_PTR (ExDoDebugObject, SourceDesc);
 
 
-    /* Output must be enabled via the DebugObject global or the DbgLevel */
+    /* Output must be enabled via the DebugObject global */
 
-    if (!AcpiGbl_EnableAmlDebugObject &&
-        !(AcpiDbgLevel & ACPI_LV_DEBUG_OBJECT))
+    if (!AcpiGbl_EnableAmlDebugObject)
     {
         return_VOID;
     }



Home | Main Index | Thread Index | Old Index