forked from OSchip/llvm-project
[libFuzzer] When printing NEW_FUNC, use 1-base indexing.
Summary: Otherwise we print things like [0/1] which is visually confusing. Reviewers: kcc Reviewed By: kcc Subscribers: delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D47837 llvm-svn: 334234
This commit is contained in:
parent
4d24093ac4
commit
111d0b2aec
|
@ -184,7 +184,7 @@ void TracePC::UpdateObservedPCs() {
|
|||
}
|
||||
|
||||
for (size_t i = 0, N = Min(CoveredFuncs.size(), NumPrintNewFuncs); i < N; i++) {
|
||||
Printf("\tNEW_FUNC[%zd/%zd]: ", i, CoveredFuncs.size());
|
||||
Printf("\tNEW_FUNC[%zd/%zd]: ", i + 1, CoveredFuncs.size());
|
||||
PrintPC("%p %F %L\n", "%p\n", CoveredFuncs[i] + 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue