Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Nov 20, 2023
1 parent 3d16b0b commit bca5f69
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cstool/cstool_tricore.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <stdio.h>
#include <stdlib.h>

#include <capstone/capstone.h>
#include "cstool.h"
Expand Down Expand Up @@ -30,13 +29,13 @@ void print_insn_detail_tricore(csh handle, cs_insn *ins)
cs_reg_name(handle, op->reg));
break;
case TRICORE_OP_IMM:
printf("\t\toperands[%u].type: IMM = 0x%x\n", i,
op->imm);
printf("\t\toperands[%u].type: IMM = 0x%" PRIx64 "\n",
i, op->imm);
break;
case TRICORE_OP_MEM:
printf("\t\toperands[%u].type: MEM\n"
"\t\t\t.mem.base: REG = %s\n"
"\t\t\t.mem.disp: 0x%x\n",
"\t\t\t.mem.disp: 0x%" PRIx64 "\n",
i, cs_reg_name(handle, op->mem.base),
op->mem.disp);
break;
Expand Down

0 comments on commit bca5f69

Please sign in to comment.