diff options
author | Bob Moore <robert.moore@intel.com> | 2012-03-20 21:46:47 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-22 01:46:04 -0400 |
commit | 4acb6884b5568f19bd47173cba8bc1f2289d6baa (patch) | |
tree | 1031c667704cad1509f39cfa66018ff8f8704f42 /drivers/acpi/acpica/nsdump.c | |
parent | a1acd22f7c6032e8394df7d8adee1a7cdad28b74 (diff) |
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/nsdump.c')
-rw-r--r-- | drivers/acpi/acpica/nsdump.c | 15 |
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, | |||
242 | 242 | ||
243 | if (!obj_desc) { | 243 | if (!obj_desc) { |
244 | 244 | ||
245 | /* No attached object, we are done */ | 245 | /* No attached object. Some types should always have an object */ |
246 | |||
247 | switch (type) { | ||
248 | case ACPI_TYPE_INTEGER: | ||
249 | case ACPI_TYPE_PACKAGE: | ||
250 | case ACPI_TYPE_BUFFER: | ||
251 | case ACPI_TYPE_STRING: | ||
252 | case ACPI_TYPE_METHOD: | ||
253 | acpi_os_printf("<No attached object>"); | ||
254 | break; | ||
255 | |||
256 | default: | ||
257 | break; | ||
258 | } | ||
246 | 259 | ||
247 | acpi_os_printf("\n"); | 260 | acpi_os_printf("\n"); |
248 | return (AE_OK); | 261 | return (AE_OK); |