summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerLoop.cpp
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-02-22 19:00:17 +0000
committerMatt Morehouse <mascasa@google.com>2018-02-22 19:00:17 +0000
commitd84e57a96b4fad4bc8f94c24e787097f0a89a534 (patch)
tree3f198166acf215173673dd2335325a11f5031bc4 /lib/fuzzer/FuzzerLoop.cpp
parent6817f0769b4ea56fa870ddec8c7846ccddb37cae (diff)
[libFuzzer] Include TEMP_MAX_LEN in Fuzzer::PrintStats.
Reviewers: kcc Reviewed By: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D43597 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@325817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerLoop.cpp')
-rw-r--r--lib/fuzzer/FuzzerLoop.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/fuzzer/FuzzerLoop.cpp b/lib/fuzzer/FuzzerLoop.cpp
index 7a3ce341f..cd835bea5 100644
--- a/lib/fuzzer/FuzzerLoop.cpp
+++ b/lib/fuzzer/FuzzerLoop.cpp
@@ -329,6 +329,8 @@ void Fuzzer::PrintStats(const char *Where, const char *End, size_t Units) {
Printf("/%zdMb", N >> 20);
}
}
+ if (TmpMaxMutationLen)
+ Printf(" lim: %zd", TmpMaxMutationLen);
if (Units)
Printf(" units: %zd", Units);
@@ -761,10 +763,6 @@ void Fuzzer::Loop(const Vector<std::string> &CorpusDirs) {
Options.LenControl * Log(TmpMaxMutationLen)) {
TmpMaxMutationLen =
Min(MaxMutationLen, TmpMaxMutationLen + Log(TmpMaxMutationLen));
- if (TmpMaxMutationLen <= MaxMutationLen)
- Printf("#%zd\tTEMP_MAX_LEN: %zd (%zd %zd)\n", TotalNumberOfRuns,
- TmpMaxMutationLen, Options.LenControl,
- LastCorpusUpdateRun);
LastCorpusUpdateRun = TotalNumberOfRuns;
}
} else {