aboutsummaryrefslogtreecommitdiff
path: root/opcodes/microblaze-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-07-24 12:56:47 +0000
committerNick Clifton <nickc@redhat.com>2012-07-24 12:56:47 +0000
commitd908c8af5a1d7d9122decf3cab08018e9f925d27 (patch)
treee9180093ce95aa1d1dc33663b6bd42ea3d0bfe33 /opcodes/microblaze-dis.c
parente2d12c215218cb525eda808e0875f07102e36fce (diff)
downloadgdb-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/microblaze-dis.c')
-rw-r--r--opcodes/microblaze-dis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c
index 1bbeead..bdbf831 100644
--- a/opcodes/microblaze-dis.c
+++ b/opcodes/microblaze-dis.c
@@ -1,6 +1,6 @@
/* Disassemble Xilinx microblaze instructions.
- Copyright 2009 Free Software Foundation, Inc.
+ Copyright 2009, 2012 Free Software Foundation, Inc.
This file is part of the GNU opcodes library.
@@ -227,7 +227,7 @@ print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info)
prev_insn_vma = curr_insn_vma;
if (op->name == NULL)
- print_func (stream, ".short 0x%04x", inst);
+ print_func (stream, ".short 0x%04x", (unsigned int) inst);
else
{
print_func (stream, "%s", op->name);
@@ -383,7 +383,7 @@ print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info)
break;
default:
/* If the disassembler lags the instruction set. */
- print_func (stream, "\tundecoded operands, inst is 0x%04x", inst);
+ print_func (stream, "\tundecoded operands, inst is 0x%04x", (unsigned int) inst);
break;
}
}