[llvm] r258370 - [libfuzzer] use %p for printing addresses
Mike Aizatsky via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 20 16:02:09 PST 2016
Author: aizatsky
Date: Wed Jan 20 18:02:09 2016
New Revision: 258370
URL: http://llvm.org/viewvc/llvm-project?rev=258370&view=rev
Log:
[libfuzzer] use %p for printing addresses
Modified:
llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
Modified: llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp?rev=258370&r1=258369&r2=258370&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp Wed Jan 20 18:02:09 2016
@@ -265,7 +265,7 @@ size_t Fuzzer::RecordBlockCoverage() {
LastCoveragePcBufferLen = __sanitizer_get_coverage_pc_buffer(&CoverageBuf);
assert(CoverageBuf);
for (size_t i = PrevBufferLen; i < LastCoveragePcBufferLen; ++i) {
- Printf("0x%x\n", CoverageBuf[i]);
+ Printf("%p\n", CoverageBuf[i]);
}
return LastRecordedBlockCoverage;
More information about the llvm-commits
mailing list