|
@@ -102,7 +102,7 @@ static struct acpi_exdump_info acpi_ex_dump_package[6] = {
|
|
|
{ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_package), NULL},
|
|
|
{ACPI_EXD_NODE, ACPI_EXD_OFFSET(package.node), "Parent Node"},
|
|
|
{ACPI_EXD_UINT8, ACPI_EXD_OFFSET(package.flags), "Flags"},
|
|
|
- {ACPI_EXD_UINT32, ACPI_EXD_OFFSET(package.count), "Elements"},
|
|
|
+ {ACPI_EXD_UINT32, ACPI_EXD_OFFSET(package.count), "Element Count"},
|
|
|
{ACPI_EXD_POINTER, ACPI_EXD_OFFSET(package.elements), "Element List"},
|
|
|
{ACPI_EXD_PACKAGE, 0, NULL}
|
|
|
};
|
|
@@ -384,6 +384,10 @@ acpi_ex_dump_object(union acpi_operand_object *obj_desc,
|
|
|
count = info->offset;
|
|
|
|
|
|
while (count) {
|
|
|
+ if (!obj_desc) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
target = ACPI_ADD_PTR(u8, obj_desc, info->offset);
|
|
|
name = info->name;
|
|
|
|
|
@@ -469,9 +473,9 @@ acpi_ex_dump_object(union acpi_operand_object *obj_desc,
|
|
|
start = *ACPI_CAST_PTR(void *, target);
|
|
|
next = start;
|
|
|
|
|
|
- acpi_os_printf("%20s : %p", name, next);
|
|
|
+ acpi_os_printf("%20s : %p ", name, next);
|
|
|
if (next) {
|
|
|
- acpi_os_printf("(%s %2.2X)",
|
|
|
+ acpi_os_printf("%s (Type %2.2X)",
|
|
|
acpi_ut_get_object_type_name
|
|
|
(next), next->common.type);
|
|
|
|
|
@@ -493,6 +497,8 @@ acpi_ex_dump_object(union acpi_operand_object *obj_desc,
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ } else {
|
|
|
+ acpi_os_printf("- No attached objects");
|
|
|
}
|
|
|
|
|
|
acpi_os_printf("\n");
|
|
@@ -1129,7 +1135,9 @@ acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
|
|
|
|
|
|
default:
|
|
|
|
|
|
- acpi_os_printf("[Unknown Type] %X\n", obj_desc->common.type);
|
|
|
+ acpi_os_printf("[%s] Type: %2.2X\n",
|
|
|
+ acpi_ut_get_type_name(obj_desc->common.type),
|
|
|
+ obj_desc->common.type);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -1167,11 +1175,17 @@ acpi_ex_dump_object_descriptor(union acpi_operand_object *obj_desc, u32 flags)
|
|
|
acpi_ex_dump_namespace_node((struct acpi_namespace_node *)
|
|
|
obj_desc, flags);
|
|
|
|
|
|
- acpi_os_printf("\nAttached Object (%p):\n",
|
|
|
- ((struct acpi_namespace_node *)obj_desc)->
|
|
|
- object);
|
|
|
-
|
|
|
obj_desc = ((struct acpi_namespace_node *)obj_desc)->object;
|
|
|
+ if (!obj_desc) {
|
|
|
+ return_VOID;
|
|
|
+ }
|
|
|
+
|
|
|
+ acpi_os_printf("\nAttached Object %p", obj_desc);
|
|
|
+ if (ACPI_GET_DESCRIPTOR_TYPE(obj_desc) == ACPI_DESC_TYPE_NAMED) {
|
|
|
+ acpi_os_printf(" - Namespace Node");
|
|
|
+ }
|
|
|
+
|
|
|
+ acpi_os_printf(":\n");
|
|
|
goto dump_object;
|
|
|
}
|
|
|
|
|
@@ -1191,6 +1205,10 @@ acpi_ex_dump_object_descriptor(union acpi_operand_object *obj_desc, u32 flags)
|
|
|
|
|
|
dump_object:
|
|
|
|
|
|
+ if (!obj_desc) {
|
|
|
+ return_VOID;
|
|
|
+ }
|
|
|
+
|
|
|
/* Common Fields */
|
|
|
|
|
|
acpi_ex_dump_object(obj_desc, acpi_ex_dump_common);
|