small improvements: dump output on error in test-llvm, fix compiler warnings
MODIFY
test/test-llvm.sh
test/test-llvm.sh
@@ -133,6 +133,7 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
}
rm -f test-instr.instrim test.out
} || {
+ cat test.out
$ECHO "$RED[!] llvm_mode InsTrim compilation failed"
CODE=1
}

MODIFY
utils/afl_untracer/afl-untracer.c
utils/afl_untracer/afl-untracer.c
@@ -568,7 +568,7 @@ void setup_trap_instrumentation(void) {
lib_addr[offset] = 0xcc; // replace instruction with debug trap
if (debug)
fprintf(stderr,
- "Patch entry: %p[%x] = %p = %02x -> SHADOW(%p) #%d -> %08x\n",
+ "Patch entry: %p[%lx] = %p = %02x -> SHADOW(%p) #%d -> %08x\n",
lib_addr, offset, lib_addr + offset, orig_byte, shadow,
bitmap_index, *shadow);
@@ -582,7 +582,7 @@ void setup_trap_instrumentation(void) {
*patch_bytes = 0xd4200000; // replace instruction with debug trap
if (debug)
fprintf(stderr,
- "Patch entry: %p[%x] = %p = %02x -> SHADOW(%p) #%d -> %016x\n",
+ "Patch entry: %p[%lx] = %p = %02x -> SHADOW(%p) #%d -> %016x\n",
lib_addr, offset, lib_addr + offset, orig_bytes, shadow,
bitmap_index, *shadow);

small improvements: dump output on error in test-llvm, fix compiler warnings