summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2012-03-21 02:46:47 +0100
committerLen Brown <len.brown@intel.com>2012-03-22 06:46:04 +0100
commit4acb6884b5568f19bd47173cba8bc1f2289d6baa (patch)
tree1031c667704cad1509f39cfa66018ff8f8704f42 /drivers/acpi/acpica
parentACPICA: Change exception code for invalid pathname in acpi_evaluate_object (diff)
downloadlinux-4acb6884b5568f19bd47173cba8bc1f2289d6baa.tar.xz
linux-4acb6884b5568f19bd47173cba8bc1f2289d6baa.zip
ACPICA: Debugger: Add missing object info to namespace dump
Many namespace node types must have an attached object. For these node types, print a message about a missing object during a namespace dump. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r--drivers/acpi/acpica/nsdump.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c
index b7f2b3be79ac..3f7f3f6e7dd5 100644
--- a/drivers/acpi/acpica/nsdump.c
+++ b/drivers/acpi/acpica/nsdump.c
@@ -242,7 +242,20 @@ acpi_ns_dump_one_object(acpi_handle obj_handle,
if (!obj_desc) {
- /* No attached object, we are done */
+ /* No attached object. Some types should always have an object */
+
+ switch (type) {
+ case ACPI_TYPE_INTEGER:
+ case ACPI_TYPE_PACKAGE:
+ case ACPI_TYPE_BUFFER:
+ case ACPI_TYPE_STRING:
+ case ACPI_TYPE_METHOD:
+ acpi_os_printf("<No attached object>");
+ break;
+
+ default:
+ break;
+ }
acpi_os_printf("\n");
return (AE_OK);