summaryrefslogtreecommitdiff
path: root/sparc-dis.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-04-09 22:49:53 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-04-14 01:04:03 +0200
commit452f58eb4966de0d957e9314383cf490fcb69064 (patch)
tree1d564cf1df54282021807fe78ebac3c694761e0a /sparc-dis.c
parentc8160fab31e7a27979196c338a305e7095dd8aea (diff)
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>
Diffstat (limited to 'sparc-dis.c')
-rw-r--r--sparc-dis.c2
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;