diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-02 15:42:09 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-02 15:42:09 +0100 |
| commit | e8799c69a8d85ef6709a39ee997768305b9f2b08 (patch) | |
| tree | b5e21ceba6b3c037b3968a49e78be7bccd730068 /src/emu | |
| parent | eb6c4594e1831daeddc469ed69c4dee917e627c1 (diff) | |
| download | box64-e8799c69a8d85ef6709a39ee997768305b9f2b08.tar.gz box64-e8799c69a8d85ef6709a39ee997768305b9f2b08.zip | |
Fixed a bunch of print format error
Diffstat (limited to 'src/emu')
| -rwxr-xr-x | src/emu/x64emu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/x64emu.c b/src/emu/x64emu.c index 21b637f8..3ce6b63e 100755 --- a/src/emu/x64emu.c +++ b/src/emu/x64emu.c @@ -336,7 +336,7 @@ const char* DumpCPURegs(x64emu_t* emu, uintptr_t ip) if(trace_emm) { // do emm reg is needed for(int i=0; i<8; ++i) { - sprintf(tmp, "mm%d:%016llx", i, emu->mmx[i].q); + sprintf(tmp, "mm%d:%016lx", i, emu->mmx[i].q); strcat(buff, tmp); if ((i&3)==3) strcat(buff, "\n"); else strcat(buff, " "); } @@ -344,7 +344,7 @@ const char* DumpCPURegs(x64emu_t* emu, uintptr_t ip) if(trace_xmm) { // do xmm reg is needed for(int i=0; i<8; ++i) { - sprintf(tmp, "%d:%016llx%016llx", i, emu->xmm[i].q[1], emu->xmm[i].q[0]); + sprintf(tmp, "%d:%016lx%016lx", i, emu->xmm[i].q[1], emu->xmm[i].q[0]); strcat(buff, tmp); if ((i&3)==3) strcat(buff, "\n"); else strcat(buff, " "); } @@ -362,7 +362,7 @@ const char* DumpCPURegs(x64emu_t* emu, uintptr_t ip) strcat(buff, "\n"); } for (int i=_AX; i<=_R15; ++i) { - sprintf(tmp, "%s=%016llx ", regname[i], emu->regs[i].q[0]); + sprintf(tmp, "%s=%016lx ", regname[i], emu->regs[i].q[0]); strcat(buff, tmp); if (i==3) { @@ -376,7 +376,7 @@ const char* DumpCPURegs(x64emu_t* emu, uintptr_t ip) } } } - sprintf(tmp, "RIP=%016llx ", ip); + sprintf(tmp, "RIP=%016lx ", ip); strcat(buff, tmp); return buff; } |