aboutsummaryrefslogtreecommitdiff
path: root/opcodes/or32-opc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-10-08 14:00:50 +0000
committerAlan Modra <amodra@gmail.com>2010-10-08 14:00:50 +0000
commit9ccb8af972518810c66317c6c942d2268bfb5123 (patch)
tree1acdeaaf802f3b87c42d584da4c113d548301124 /opcodes/or32-opc.c
parentec3d575a7a6516a1b3065312d228d706de6c49c7 (diff)
downloadgdb-9ccb8af972518810c66317c6c942d2268bfb5123.zip
gdb-9ccb8af972518810c66317c6c942d2268bfb5123.tar.gz
gdb-9ccb8af972518810c66317c6c942d2268bfb5123.tar.bz2
Fix build with -DDEBUG=7
Diffstat (limited to 'opcodes/or32-opc.c')
-rw-r--r--opcodes/or32-opc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/or32-opc.c b/opcodes/or32-opc.c
index ff624e7..94a1ace 100644
--- a/opcodes/or32-opc.c
+++ b/opcodes/or32-opc.c
@@ -898,7 +898,7 @@ or32_extract (char param_ch, char *enc_initial, unsigned long insn)
{
unsigned long tmp = strtol (enc, NULL, 16);
#if DEBUG
- printf (" enc=%s, tmp=%x ", enc, tmp);
+ printf (" enc=%s, tmp=%lx ", enc, tmp);
#endif
if (param_ch == '0')
tmp = 15 - tmp;
@@ -918,7 +918,7 @@ or32_extract (char param_ch, char *enc_initial, unsigned long insn)
opc_pos--;
param_pos--;
#if DEBUG
- printf ("\n ret=%x opc_pos=%x, param_pos=%x\n", ret, opc_pos, param_pos);
+ printf ("\n ret=%lx opc_pos=%x, param_pos=%x\n", ret, opc_pos, param_pos);
#endif
if (ISLOWER (param_ch))
ret -= ((insn >> opc_pos) & 0x1) << param_pos;
@@ -940,7 +940,7 @@ or32_extract (char param_ch, char *enc_initial, unsigned long insn)
enc++;
#if DEBUG
- printf ("ret=%x\n", ret);
+ printf ("ret=%lx\n", ret);
#endif
return ret;
}