From d908c8af5a1d7d9122decf3cab08018e9f925d27 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 24 Jul 2012 12:56:47 +0000 Subject: 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. --- opcodes/sparc-dis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opcodes/sparc-dis.c') 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. */ -- cgit v1.1