[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:
Kostya Serebryany 2018-06-07 21:15:24 +00:00
parent 4d24093ac4
commit 111d0b2aec
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}