mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 07:02:03 -06:00
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>
This commit is contained in:
parent
d14a68b6dc
commit
c8160fab31
1 changed files with 2 additions and 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);
|
print_dsp_reg (field_b & 0xf, fprintf_fn, stream);
|
||||||
break;
|
break;
|
||||||
case DSP_REG_X:
|
case DSP_REG_X:
|
||||||
fprintf_fn (stream, sx_tab[(field_b >> 6) & 3]);
|
fprintf_fn (stream, "%s", sx_tab[(field_b >> 6) & 3]);
|
||||||
break;
|
break;
|
||||||
case DSP_REG_Y:
|
case DSP_REG_Y:
|
||||||
fprintf_fn (stream, sy_tab[(field_b >> 4) & 3]);
|
fprintf_fn (stream, "%s", sy_tab[(field_b >> 4) & 3]);
|
||||||
break;
|
break;
|
||||||
case A_MACH:
|
case A_MACH:
|
||||||
fprintf_fn (stream, "mach");
|
fprintf_fn (stream, "mach");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue