diff options
author | Bob Moore <robert.moore@intel.com> | 2015-12-29 13:57:14 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-01-01 03:47:36 +0100 |
commit | 50da9851d009a0a0d10064e73dd6704593333c72 (patch) | |
tree | ce67450b24d4ed5939a8d23cc038a19aac72f9d1 /drivers/acpi/acpica | |
parent | 973da572820c1c85ae828c2e090e9f902546ba96 (diff) | |
download | linux-50da9851d009a0a0d10064e73dd6704593333c72.tar.gz linux-50da9851d009a0a0d10064e73dd6704593333c72.tar.bz2 linux-50da9851d009a0a0d10064e73dd6704593333c72.zip |
ACPICA: Update for output of the Debug Object
ACPICA commit b01414f5a822d0879aa9eba91541a21e7e501142
Improve output for the case of an Index() that refers to a
Package element that has not been initialized.
Link: https://github.com/acpica/acpica/commit/b01414f5
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r-- | drivers/acpi/acpica/exdebug.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/exdebug.c b/drivers/acpi/acpica/exdebug.c index ca6e379f4347..b22309094c5f 100644 --- a/drivers/acpi/acpica/exdebug.c +++ b/drivers/acpi/acpica/exdebug.c @@ -310,9 +310,14 @@ acpi_ex_do_debug_object(union acpi_operand_object *source_desc, case ACPI_TYPE_PACKAGE: acpi_os_printf("Package[%u] = ", value); - acpi_ex_do_debug_object(*source_desc-> - reference.where, - level + 4, 0); + if (!(*source_desc->reference.where)) { + acpi_os_printf + ("[Uninitialized Package Element]\n"); + } else { + acpi_ex_do_debug_object + (*source_desc->reference. + where, level + 4, 0); + } break; default: |