From mboxrd@z Thu Jan 1 00:00:00 1970 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) Sender: Richard Henderson From: Richard Henderson Date: Mon, 20 Jun 2011 15:02:29 -0700 Message-Id: <1308607349-20581-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH] hppa: Fix printf warnings in hppa-dis.c. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@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. */ -- 1.5.6.5