Skip to content

Commit 20d93fc

Browse files
Erik Schmaussrafaeljw
authored andcommitted
ACPICA: debugger: surround field unit output with braces '{'
ACPICA commit 76ca57291d007d33087982a4b28cd1ee9bcd37a6 This helps differentiate the type of named objects between field units and buffers. In other words, without this symbol, it would be difficult to tell whether a particular named object is a buffer or a field unit. Link: acpica/acpica@76ca5729 Signed-off-by: Erik Schmauss <[email protected]> Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 5fd0332 commit 20d93fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/acpi/acpica/dbnames.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,11 @@ acpi_db_walk_for_fields(acpi_handle obj_handle,
552552
buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER;
553553
acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);
554554

555+
/*
556+
* Since this is a field unit, surround the output in braces
557+
*/
558+
acpi_os_printf("{");
559+
555560
ret_value = (union acpi_object *)buffer.pointer;
556561
switch (ret_value->type) {
557562
case ACPI_TYPE_INTEGER:
@@ -571,7 +576,7 @@ acpi_db_walk_for_fields(acpi_handle obj_handle,
571576

572577
break;
573578
}
574-
acpi_os_printf("\n");
579+
acpi_os_printf("}\n");
575580

576581
ACPI_FREE(buffer.pointer);
577582

0 commit comments

Comments
 (0)