From 42341e0ff51f317064b8d89d421587adc80f9264 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 7 May 2011 23:30:32 +0000 Subject: [PATCH] Removed debugging left-over --- src/code.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/code.c b/src/code.c index 62f8ce1..a80c86b 100644 --- a/src/code.c +++ b/src/code.c @@ -359,7 +359,6 @@ int code_decode_buffer(Code * code, char const * buffer, size_t size) arch_init_buffer(code->arch, buffer, size); if((ret = arch_decode(code->arch, code, &calls, &calls_cnt)) == 0) { - fprintf(stderr, "DEBUG: %lu\n", calls_cnt); for(i = 0; i < calls_cnt; i++) code_print(code, &calls[i]); free(calls); @@ -453,7 +452,7 @@ int code_print(Code * code, ArchInstructionCall * call) printf("[%%%s]", name); break; } - printf("[%%%s + $0x%lx]", name, + printf("[%%%s + $0x%lx]", name, (unsigned long) ao->value.dregister.offset); break; case AOT_DREGISTER2: @@ -478,7 +477,7 @@ int code_print(Code * code, ArchInstructionCall * call) static void _print_immediate(ArchOperand * ao) { printf("%s$0x%lx", ao->value.immediate.negative ? "-" : "", - ao->value.immediate.value); + (unsigned long)ao->value.immediate.value); if(AO_GET_VALUE(ao->definition) == AOI_REFERS_STRING) { if(ao->value.immediate.name != NULL)