summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/dsdebug.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2018-06-01 22:06:42 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-06-06 09:53:42 +0300
commit3877b2ccb71356492d8f514a76d764c3ecc1147e (patch)
tree9065e4dbfa73f90de34ab8711b7e002026fce9d3 /drivers/acpi/acpica/dsdebug.c
parentfb30b2981d674f2326feb942f462c2cf8213ac14 (diff)
downloadlinux-3877b2ccb71356492d8f514a76d764c3ecc1147e.tar.xz
ACPICA: Debugger: Reduce verbosity for module-level code errors.
Module-level code execution has no method arguments or locals, so do not attempt to output values for these. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/dsdebug.c')
-rw-r--r--drivers/acpi/acpica/dsdebug.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/dsdebug.c b/drivers/acpi/acpica/dsdebug.c
index 70a2fca60306..9d33f0bb2885 100644
--- a/drivers/acpi/acpica/dsdebug.c
+++ b/drivers/acpi/acpica/dsdebug.c
@@ -162,9 +162,15 @@ acpi_ds_dump_method_stack(acpi_status status,
op->common.next = NULL;
#ifdef ACPI_DISASSEMBLER
- acpi_os_printf("Failed at ");
- acpi_dm_disassemble(next_walk_state, op,
- ACPI_UINT32_MAX);
+ if (walk_state->method_node !=
+ acpi_gbl_root_node) {
+
+ /* More verbose if not module-level code */
+
+ acpi_os_printf("Failed at ");
+ acpi_dm_disassemble(next_walk_state, op,
+ ACPI_UINT32_MAX);
+ }
#endif
op->common.next = next;
}