Skip to content

Commit

Permalink
Fix format from clang's -Wformat-pedantic
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Dec 28, 2023
1 parent b1d9c09 commit 27aa1f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions instructionAPI/src/x86/decoder.C
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ namespace Dyninst { namespace InstructionAPI {
// The iterator form of disassembly allows reuse of the instruction object, reducing
// the number of memory allocations.
if(!cs_disasm_iter(dis.handle, &code, &codeSize, &cap_addr, dis.insn)) {
decode_printf("Failed to disassemble instruction at %p: %s\n", code, cs_strerror(cs_errno(dis.handle)));
decode_printf("Failed to disassemble instruction at %p: %s\n", static_cast<void const*>(code),
cs_strerror(cs_errno(dis.handle)));
return;
}
decode_operands(insn, dis);
Expand All @@ -91,7 +92,8 @@ namespace Dyninst { namespace InstructionAPI {
// The iterator form of disassembly allows reuse of the instruction object, reducing
// the number of memory allocations.
if(!cs_disasm_iter(dis.handle, &code, &codeSize, &cap_addr, dis.insn)) {
decode_printf("Failed to disassemble instruction at %p: %s\n", code, cs_strerror(cs_errno(dis.handle)));
decode_printf("Failed to disassemble instruction at %p: %s\n", static_cast<void const*>(code),
cs_strerror(cs_errno(dis.handle)));
m_Operation = Operation(e_No_Entry, "INVALID", m_Arch);
return;
}
Expand Down

0 comments on commit 27aa1f4

Please sign in to comment.