From patchwork Mon Jun 20 22:02:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 101215 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 75452B6F81 for ; Tue, 21 Jun 2011 08:05:12 +1000 (EST) Received: from localhost ([::1]:41113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYmah-000413-EI for incoming@patchwork.ozlabs.org; Mon, 20 Jun 2011 18:05:07 -0400 Received: from eggs.gnu.org ([140.186.70.92]:51257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYmYg-00040u-Ha for qemu-devel@nongnu.org; Mon, 20 Jun 2011 18:03:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYmYf-0000nx-Ix for qemu-devel@nongnu.org; Mon, 20 Jun 2011 18:03:02 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:35388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYmYf-0000nd-Go for qemu-devel@nongnu.org; Mon, 20 Jun 2011 18:03:01 -0400 Received: by qyk30 with SMTP id 30so1693024qyk.4 for ; Mon, 20 Jun 2011 15:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:subject:date:message-id:x-mailer; bh=f1mvpHH4fmEOLoTw+0+KvVVrKRsqPoWOoWuhtZSRoiU=; b=CML0Y2d/htV1GlzztGrKxSszfC4/AYD7WEq+ei4N3Aq1EJ4jY+MfNfS3UPgaU4+jMA 6nA1VWKh1gY+lbqGWRYkYy1vziE0iUyPFcE1mUFX7h+eNHpTn00KZt3xepR7feesqh/R 2zxEiPvywTWyDEUB2AUCwBC9a83HW3LS0Vi+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer; b=EM1wnXpqN/HCB8oL/4cV8G+oB6KcGYf8GXZRHLtL2zio6VwhLk8F5HJobHNE7TB8A6 /xDaISRV9cGILsZHNTgkRwNaqrv1f9AEIwl0+GcBvbe8qdc2B9bhqbVGUHP95GpWIDq7 5veDXZsGgecoAWUurY2L8QO+l4WE4mY298ARI= Received: by 10.229.26.201 with SMTP id f9mr4453108qcc.151.1308607380249; Mon, 20 Jun 2011 15:03:00 -0700 (PDT) Received: from localhost.localdomain (c-71-227-161-214.hsd1.wa.comcast.net [71.227.161.214]) by mx.google.com with ESMTPS id t21sm2706434qcs.38.2011.06.20.15.02.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Jun 2011 15:02:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 20 Jun 2011 15:02:29 -0700 Message-Id: <1308607349-20581-1-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.4.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.180 Subject: [Qemu-devel] [PATCH] hppa: Fix printf warnings in hppa-dis.c. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson --- hppa-dis.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hppa-dis.c b/hppa-dis.c index a5760a9..435da73 100644 --- a/hppa-dis.c +++ b/hppa-dis.c @@ -1771,13 +1771,13 @@ static const char *const add_compl_names[] = { 0, "", ",l", ",tsv" }; static void fput_reg (unsigned reg, disassemble_info *info) { - (*info->fprintf_func) (info->stream, reg ? reg_names[reg] : "r0"); + (*info->fprintf_func) (info->stream, "%s", reg ? reg_names[reg] : "r0"); } static void fput_fp_reg (unsigned reg, disassemble_info *info) { - (*info->fprintf_func) (info->stream, reg ? fp_reg_names[reg] : "fr0"); + (*info->fprintf_func) (info->stream, "%s", reg ? fp_reg_names[reg] : "fr0"); } static void @@ -1794,7 +1794,7 @@ fput_fp_reg_r (unsigned reg, disassemble_info *info) static void fput_creg (unsigned reg, disassemble_info *info) { - (*info->fprintf_func) (info->stream, control_reg[reg]); + (*info->fprintf_func) (info->stream, "%s", control_reg[reg]); } /* Print constants with sign. */