ACPICA: Object dump routines: Use common function for string output
authorBob Moore <robert.moore@intel.com>
Thu, 3 May 2012 01:41:41 +0000 (09:41 +0800)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jun 2012 15:51:49 +0000 (11:51 -0400)
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: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/exdump.c

index 2a6ac0a3bc1e661b25876a1247fbe763279ef91d..836fe76e65d05882572e8c52f44dcf903e103a15 100644 (file)
@@ -926,9 +926,7 @@ acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
        case ACPI_TYPE_STRING:
 
                acpi_os_printf("[String] Value: ");
-               for (i = 0; i < obj_desc->string.length; i++) {
-                       acpi_os_printf("%c", obj_desc->string.pointer[i]);
-               }
+               acpi_ut_print_string(obj_desc->string.pointer, ACPI_UINT8_MAX);
                acpi_os_printf("\n");
                break;