]> git.proxmox.com Git - qemu.git/commitdiff
sparc: Fix compiler warning (fprintf format string)
authorStefan Weil <weil@mail.berlios.de>
Fri, 9 Apr 2010 20:49:53 +0000 (22:49 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 13 Apr 2010 23:04:03 +0000 (01:04 +0200)
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>
sparc-dis.c

index 83a12ae99de1ebb6d85f0cf8bc82154fb781fbf8..611e74f8ae6759416070e52b9b23b59552cd9ea6 100644 (file)
@@ -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;