aboutsummaryrefslogtreecommitdiff
path: root/microblaze-dis.c
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2010-04-13 21:25:25 -0400
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2010-04-17 08:21:32 +0200
commita491cf58dbe320511b1d3d053870baba2c7f0384 (patch)
tree3b87103420c934f8ede48425fe091757b0503264 /microblaze-dis.c
parentbf3de7f16f2ab9e2ce57704e0b8a19e929dbf73e (diff)
Fix format strings
This fix the following build failure: CC libdis-user/microblaze-dis.o cc1: warnings being treated as errors microblaze-dis.c: In function 'print_insn_microblaze': microblaze-dis.c:829: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'long unsigned int' microblaze-dis.c:962: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'long unsigned int' Reported-at: http://www.monstr.eu/wiki/doku.php?id=log:2010-04-13_12_10_00 Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'microblaze-dis.c')
-rw-r--r--microblaze-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/microblaze-dis.c b/microblaze-dis.c
index b26572faf8..9235fd898a 100644
--- a/microblaze-dis.c
+++ b/microblaze-dis.c
@@ -826,7 +826,7 @@ print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info)
prev_insn_vma = curr_insn_vma;
if (op->name == 0) {
- fprintf (stream, ".short 0x%04x", inst);
+ fprintf (stream, ".short 0x%04lx", inst);
}
else
{
@@ -959,7 +959,7 @@ print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info)
break;
default:
/* if the disassembler lags the instruction set */
- fprintf (stream, "\tundecoded operands, inst is 0x%04x", inst);
+ fprintf (stream, "\tundecoded operands, inst is 0x%04lx", inst);
break;
}
}