From patchwork Wed Jul 25 03:40:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1235331 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 97702DFFC0 for ; Wed, 25 Jul 2012 03:55:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756381Ab2GYDmJ (ORCPT ); Tue, 24 Jul 2012 23:42:09 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:46154 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756338Ab2GYDmE (ORCPT ); Tue, 24 Jul 2012 23:42:04 -0400 Received: by mail-qc0-f174.google.com with SMTP id o28so169000qcr.19 for ; Tue, 24 Jul 2012 20:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:reply-to:organization; bh=t/0ZXZZl5ZinP3d078txw6WdIuV7qz/8Xt/gmSNYkt8=; b=rcDlP8cG7xhSVjmT0zvMMKYP/+HfNqKNqr9lE9J6KI13M07hpvMG0qFuA/BXMNXSiu 7I1AVhzZ940N+TW6jQWOkINPvEXhypP+S7vjNSHtH3lQOVi6yVYViMg7RdLk8wA0JXgM gPOC6HZueWWmRf0U81+0wpH+e6ovhhj8rs2t8LXIQbuXCHGjJul/UsQ4ugoFsgnxRRne vBQRtigtAnSXlze+QedXT6pkDD76Dd+TGNtgGm8k41GfRzEHeTxpWS6GR5bQ42+JOBJ6 bG9pTK5k/MJ/uByoFPcI5PdBp9lJ/SrGgtzT3TTYvonMt2bybSAcLqGnK42O70XhQMhl NYvA== Received: by 10.224.1.130 with SMTP id 2mr23787374qaf.61.1343187724106; Tue, 24 Jul 2012 20:42:04 -0700 (PDT) Received: from x980.localdomain6 (h184-61-125-197.altnnh.dsl.dynamic.tds.net. [184.61.125.197]) by mx.google.com with ESMTPS id et6sm15489186qab.8.2012.07.24.20.42.02 (version=SSLv3 cipher=OTHER); Tue, 24 Jul 2012 20:42:03 -0700 (PDT) From: Len Brown To: linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org Cc: linux-kernel@vger.kernel.org, Bob Moore , Lin Ming , Len Brown Subject: [PATCH 02/52] ACPICA: Object dump routines: Use common function for string output Date: Tue, 24 Jul 2012 23:40:58 -0400 Message-Id: <579e3820bd1381d36b2c41485e9e7a94216bb7ed.1343187617.git.len.brown@intel.com> X-Mailer: git-send-email 1.7.12.rc0 In-Reply-To: <1343187708-19532-1-git-send-email-lenb@kernel.org> References: <1343187708-19532-1-git-send-email-lenb@kernel.org> In-Reply-To: <6af1c4fc5227af65092ebc848989693562bfa3e8.1343187617.git.len.brown@intel.com> References: <6af1c4fc5227af65092ebc848989693562bfa3e8.1343187617.git.len.brown@intel.com> Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Bob Moore 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 Signed-off-by: Lin Ming Signed-off-by: Len Brown --- drivers/acpi/acpica/exdump.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/acpi/acpica/exdump.c b/drivers/acpi/acpica/exdump.c index 2a6ac0a..836fe76 100644 --- a/drivers/acpi/acpica/exdump.c +++ b/drivers/acpi/acpica/exdump.c @@ -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;