diff --git a/instructionAPI/src/x86/decoder.C b/instructionAPI/src/x86/decoder.C index d62c81044f..5929d2410b 100644 --- a/instructionAPI/src/x86/decoder.C +++ b/instructionAPI/src/x86/decoder.C @@ -74,7 +74,7 @@ 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", static_cast(code), + decode_printf("Failed to disassemble instruction at %p: %s\n", static_cast(code), cs_strerror(cs_errno(dis.handle))); return; } @@ -92,7 +92,7 @@ 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", static_cast(code), + decode_printf("Failed to disassemble instruction at %p: %s\n", static_cast(code), cs_strerror(cs_errno(dis.handle))); m_Operation = Operation(e_No_Entry, "INVALID", m_Arch); return;