From: Stefan Weil Date: Fri, 9 Apr 2010 20:49:52 +0000 (+0200) Subject: sh4: Fix compiler warning (fprintf format string) X-Git-Tag: v0.13.0-rc0~799 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c8160fab31e7a27979196c338a305e7095dd8aea;p=qemu.git sh4: Fix compiler warning (fprintf format string) When argument checking is enabled, gcc throws this error: error: format not a string literal and no format arguments The patch rewrites the statement to satisfy the compiler. Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno --- diff --git a/sh4-dis.c b/sh4-dis.c index 41fd8667b..078a6b206 100644 --- a/sh4-dis.c +++ b/sh4-dis.c @@ -1493,10 +1493,10 @@ print_insn_ppi (int field_b, struct disassemble_info *info) print_dsp_reg (field_b & 0xf, fprintf_fn, stream); break; case DSP_REG_X: - fprintf_fn (stream, sx_tab[(field_b >> 6) & 3]); + fprintf_fn (stream, "%s", sx_tab[(field_b >> 6) & 3]); break; case DSP_REG_Y: - fprintf_fn (stream, sy_tab[(field_b >> 4) & 3]); + fprintf_fn (stream, "%s", sy_tab[(field_b >> 4) & 3]); break; case A_MACH: fprintf_fn (stream, "mach");