Skip to content

Commit

Permalink
ACPICA: Debugger: Add missing object info to namespace dump
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bob Moore authored and Len Brown committed Mar 22, 2012
1 parent a1acd22 commit 4acb688
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion drivers/acpi/acpica/nsdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4acb688

Please sign in to comment.