diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-04-09 22:49:52 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-14 01:04:02 +0200 |
commit | c8160fab31e7a27979196c338a305e7095dd8aea (patch) | |
tree | 72b0e4efde7a7a1470bea8ba4277fce31d481be4 /sh4-dis.c | |
parent | d14a68b6dc0cc01ddd4c1c7c5907b95c3938679c (diff) |
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 <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'sh4-dis.c')
-rw-r--r-- | sh4-dis.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |