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/sparc-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/sparc-dis.c')
-rw-r--r-- | opcodes/sparc-dis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/sparc-dis.c b/opcodes/sparc-dis.c index 73f01d3..f0ee518 100644 --- a/opcodes/sparc-dis.c +++ b/opcodes/sparc-dis.c @@ -550,7 +550,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; @@ -704,7 +704,7 @@ print_insn_sparc (bfd_vma memaddr, disassemble_info *info) break; case ')': /* 5 bit unsigned immediate from RS3. */ - (info->fprintf_func) (stream, "%#x", X_RS3 (insn)); + (info->fprintf_func) (stream, "%#x", (unsigned int) X_RS3 (insn)); break; case 'X': /* 5 bit unsigned immediate. */ |