mirror of
https://github.com/ish-app/ish.git
synced 2026-02-01 14:32:26 +00:00
Fix some warnings about debug logging
This commit is contained in:
parent
bd6ab0f1e2
commit
ae63eb9a07
@ -19,7 +19,7 @@
|
||||
#define READIMM_(name,size) \
|
||||
name = mem_read_(cpu->eip, size); \
|
||||
cpu->eip += size/8; \
|
||||
TRACE("imm %lx ", (uint64_t) name)
|
||||
TRACE("imm %llx ", (long long) name)
|
||||
#define READIMM READIMM_(imm, OP_SIZE)
|
||||
#define READIMM8 READIMM_(imm, 8)
|
||||
#define READIMM16 READIMM_(imm, 16)
|
||||
|
||||
@ -15,6 +15,7 @@ struct regptr {
|
||||
reg_id_t reg32_id;
|
||||
reg_id_t reg128_id;
|
||||
};
|
||||
#if DEBUG_instr
|
||||
static const char *regptr_name(struct regptr regptr) {
|
||||
static char buf[15];
|
||||
sprintf(buf, "%s/%s/%s",
|
||||
@ -23,6 +24,7 @@ static const char *regptr_name(struct regptr regptr) {
|
||||
reg32_name(regptr.reg32_id));
|
||||
return buf;
|
||||
}
|
||||
#endif
|
||||
|
||||
struct modrm_info {
|
||||
// MOD/RM BITS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user