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/hppa-dis.c | |
parent | e2d12c215218cb525eda808e0875f07102e36fce (diff) | |
download | fsf-binutils-gdb-d908c8af5a1d7d9122decf3cab08018e9f925d27.zip fsf-binutils-gdb-d908c8af5a1d7d9122decf3cab08018e9f925d27.tar.gz fsf-binutils-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/hppa-dis.c')
-rw-r--r-- | opcodes/hppa-dis.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c index 74d9ece..6c3f4de 100644 --- a/opcodes/hppa-dis.c +++ b/opcodes/hppa-dis.c @@ -1,6 +1,6 @@ /* Disassembler for the PA-RISC. Somewhat derived from sparc-pinsn.c. Copyright 1989, 1990, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2003, - 2005, 2007 Free Software Foundation, Inc. + 2005, 2007, 2012 Free Software Foundation, Inc. Contributed by the Center for Software Science at the University of Utah (pa-gdb-bugs@cs.utah.edu). @@ -176,13 +176,13 @@ static const char *const add_compl_names[] = { 0, "", ",l", ",tsv" }; static void fput_reg (unsigned reg, disassemble_info *info) { - (*info->fprintf_func) (info->stream, reg ? reg_names[reg] : "r0"); + (*info->fprintf_func) (info->stream, "%s", reg ? reg_names[reg] : "r0"); } static void fput_fp_reg (unsigned reg, disassemble_info *info) { - (*info->fprintf_func) (info->stream, reg ? fp_reg_names[reg] : "fr0"); + (*info->fprintf_func) (info->stream, "%s", reg ? fp_reg_names[reg] : "fr0"); } static void @@ -199,7 +199,7 @@ fput_fp_reg_r (unsigned reg, disassemble_info *info) static void fput_creg (unsigned reg, disassemble_info *info) { - (*info->fprintf_func) (info->stream, control_reg[reg]); + (*info->fprintf_func) (info->stream, "%s", control_reg[reg]); } /* Print constants with sign. */ |