From: Bob Moore Date: Wed, 21 Mar 2012 01:46:47 +0000 (+0800) Subject: ACPICA: Debugger: Add missing object info to namespace dump X-Git-Tag: firefly_0821_release~3680^2~2945^2~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4acb6884b5568f19bd47173cba8bc1f2289d6baa;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Lin Ming Signed-off-by: Len Brown --- 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(""); + break; + + default: + break; + } acpi_os_printf("\n"); return (AE_OK);