Skip to content

Commit

Permalink
ACPICA: debugger: surround field unit output with braces '{'
Browse files Browse the repository at this point in the history
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: https://github.com/acpica/acpica/commit/76ca5729
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Erik Schmauss authored and Rafael J. Wysocki committed Oct 28, 2019
1 parent 5fd0332 commit 20d93fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/acpi/acpica/dbnames.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,11 @@ acpi_db_walk_for_fields(acpi_handle obj_handle,
buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER;
acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);

/*
* Since this is a field unit, surround the output in braces
*/
acpi_os_printf("{");

ret_value = (union acpi_object *)buffer.pointer;
switch (ret_value->type) {
case ACPI_TYPE_INTEGER:
Expand All @@ -571,7 +576,7 @@ acpi_db_walk_for_fields(acpi_handle obj_handle,

break;
}
acpi_os_printf("\n");
acpi_os_printf("}\n");

ACPI_FREE(buffer.pointer);

Expand Down

0 comments on commit 20d93fc

Please sign in to comment.