diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-04-09 22:49:53 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-14 01:04:03 +0200 |
commit | 452f58eb4966de0d957e9314383cf490fcb69064 (patch) | |
tree | 1d564cf1df54282021807fe78ebac3c694761e0a | |
parent | c8160fab31e7a27979196c338a305e7095dd8aea (diff) | |
download | qemu-452f58eb4966de0d957e9314383cf490fcb69064.tar.gz qemu-452f58eb4966de0d957e9314383cf490fcb69064.tar.bz2 qemu-452f58eb4966de0d957e9314383cf490fcb69064.zip |
sparc: 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>
-rw-r--r-- | sparc-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sparc-dis.c b/sparc-dis.c index 83a12ae99d..611e74f8ae 100644 --- a/sparc-dis.c +++ b/sparc-dis.c @@ -2778,7 +2778,7 @@ print_insn_sparc (bfd_vma memaddr, disassemble_info *info) /* Can't do simple format if source and dest are different. */ continue; - (*info->fprintf_func) (stream, opcode->name); + (*info->fprintf_func) (stream, "%s", opcode->name); { const char *s; |