ACPICA: Debugger: Add missing object info to namespace dump
authorBob Moore <robert.moore@intel.com>
Wed, 21 Mar 2012 01:46:47 +0000 (09:46 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 22 Mar 2012 05:46:04 +0000 (01:46 -0400)
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>
drivers/acpi/acpica/nsdump.c

index b7f2b3b..3f7f3f6 100644 (file)
@@ -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);