Skip to contentSkip to conversation

sparc32: fix MXCC printf warning

PATCH In review Robert Reif 2 participants 2 messages Oct 2, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc32: fix MXCC printf warning

/home/wine/qemu/target-sparc/op_helper.c: In function `helper_ld_asi':
/home/wine/qemu/target-sparc/op_helper.c:813: warning: unsigned int format, different type arg (arg 6) /home/wine/qemu/target-sparc/op_helper.c: In function `helper_st_asi':
/home/wine/qemu/target-sparc/op_helper.c:1077: warning: unsigned int format, different type arg (arg 5)

cpu.h +2 -2
@@ -811,7 +811,7 @@
             break;
         }
         DPRINTF_MXCC("asi = %d, size = %d, sign = %d, "
-                     "addr = %08x -> ret = %08x,"
+                     "addr = %08x -> ret = %016llx,"
                      "addr = %08x\n", asi, size, sign, last_addr, ret, addr);
 #ifdef DEBUG_MXCC
         dump_mxcc(env);
@@ -1074,7 +1074,7 @@
                          size);
             break;
         }
-        DPRINTF_MXCC("asi = %d, size = %d, addr = %08x, val = %08x\n", asi,
+        DPRINTF_MXCC("asi = %d, size = %d, addr = %08x, val = %016llx\n", asi,
                      size, addr, val);
 #ifdef DEBUG_MXCC
         dump_mxcc(env);
#1 lore raw
Quoted 8 lines · Robert Reif

/home/wine/qemu/target-sparc/op_helper.c: In function `helper_ld_asi':
/home/wine/qemu/target-sparc/op_helper.c:813: warning:
unsigned int format, different type arg (arg 6)
/home/wine/qemu/target-sparc/op_helper.c: In function
`helper_st_asi':
/home/wine/qemu/target-sparc/op_helper.c:1077: warning:
unsigned int format, different type arg (arg 5)

Thanks. I applied a patch which uses PRIx64 instead of 016llx.