forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/acpi/acpica/nsdump.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: nsdump - table dumping routines for debug
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -70,7 +70,7 @@
7070 acpi_os_printf("?");
7171 }
7272
73
- pathname += ACPI_NAME_SIZE;
73
+ pathname += ACPI_NAMESEG_SIZE;
7474 num_segments--;
7575 if (num_segments) {
7676 acpi_os_printf(".");
....@@ -197,7 +197,7 @@
197197
198198 /* Now we can print out the pertinent information */
199199
200
- acpi_os_printf(" %-12s %p %2.2X ",
200
+ acpi_os_printf(" %-12s %p %3.3X ",
201201 acpi_ut_get_type_name(type), this_node,
202202 this_node->owner_id);
203203
....@@ -291,7 +291,7 @@
291291 for (i = 0;
292292 (i < obj_desc->buffer.length
293293 && i < 12); i++) {
294
- acpi_os_printf(" %.2hX",
294
+ acpi_os_printf(" %2.2X",
295295 obj_desc->buffer.
296296 pointer[i]);
297297 }
....@@ -404,7 +404,7 @@
404404 case ACPI_TYPE_LOCAL_BANK_FIELD:
405405 case ACPI_TYPE_LOCAL_INDEX_FIELD:
406406
407
- acpi_os_printf(" Off %.3X Len %.2X Acc %.2hd\n",
407
+ acpi_os_printf(" Off %.3X Len %.2X Acc %.2X\n",
408408 (obj_desc->common_field.
409409 base_byte_offset * 8)
410410 +
....@@ -589,8 +589,6 @@
589589
590590 goto cleanup;
591591 }
592
-
593
- obj_type = ACPI_TYPE_INVALID; /* Terminate loop after next pass */
594592 }
595593
596594 cleanup: