Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 579e3820 authored by Bob Moore's avatar Bob Moore Committed by Len Brown
Browse files

ACPICA: Object dump routines: Use common function for string output



For ACPI string objects, always use the common string dump
function, acpi_ut_print_string. This function surrounds the string
with quotes and handles allowed escape sequences.

Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 6af1c4fc
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -926,9 +926,7 @@ acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
	case ACPI_TYPE_STRING:
	case ACPI_TYPE_STRING:


		acpi_os_printf("[String] Value: ");
		acpi_os_printf("[String] Value: ");
		for (i = 0; i < obj_desc->string.length; i++) {
		acpi_ut_print_string(obj_desc->string.pointer, ACPI_UINT8_MAX);
			acpi_os_printf("%c", obj_desc->string.pointer[i]);
		}
		acpi_os_printf("\n");
		acpi_os_printf("\n");
		break;
		break;