diff options
author | Nick Clifton <nickc@redhat.com> | 2012-07-24 12:56:47 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-07-24 12:56:47 +0000 |
commit | d908c8af5a1d7d9122decf3cab08018e9f925d27 (patch) | |
tree | e9180093ce95aa1d1dc33663b6bd42ea3d0bfe33 /opcodes/m68k-dis.c | |
parent | e2d12c215218cb525eda808e0875f07102e36fce (diff) | |
download | gdb-d908c8af5a1d7d9122decf3cab08018e9f925d27.zip gdb-d908c8af5a1d7d9122decf3cab08018e9f925d27.tar.gz gdb-d908c8af5a1d7d9122decf3cab08018e9f925d27.tar.bz2 |
PR binutils/13135
* arm-dis.c: Add necessary casts for printing integer values.
Use %s when printing string values.
* hppa-dis.c: Likewise.
* m68k-dis.c: Likewise.
* microblaze-dis.c: Likewise.
* mips-dis.c: Likewise.
* ppc-dis.c: Likewise.
* sparc-dis.c: Likewise.
* dis-asm.h (fprintf_ftype): Add ATTRIBUTE_FPTR_PRINTF_2.
Diffstat (limited to 'opcodes/m68k-dis.c')
-rw-r--r-- | opcodes/m68k-dis.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c index 0bbf037..bc2dd49 100644 --- a/opcodes/m68k-dis.c +++ b/opcodes/m68k-dis.c @@ -1,7 +1,7 @@ /* Print Motorola 68k instructions. Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, - 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 - Free Software Foundation, Inc. + 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, + 2012 Free Software Foundation, Inc. This file is part of the GNU opcodes library. @@ -654,7 +654,7 @@ print_insn_arg (const char *d, { static char *const cacheFieldName[] = { "nc", "dc", "ic", "bc" }; FETCH_ARG (2, val); - (*info->fprintf_func) (info->stream, cacheFieldName[val]); + (*info->fprintf_func) (info->stream, "%s", cacheFieldName[val]); break; } @@ -792,7 +792,7 @@ print_insn_arg (const char *d, static char *const scalefactor_name[] = { "<<", ">>" }; FETCH_ARG (1, val); - (*info->fprintf_func) (info->stream, scalefactor_name[val]); + (*info->fprintf_func) (info->stream, "%s", scalefactor_name[val]); } else { |