summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-02-14 22:14:36 +0000
committerKostya Serebryany <kcc@google.com>2017-02-14 22:14:36 +0000
commitae579a79c0d7c39e458af827f6a202c51fbc2767 (patch)
treeb058e706eec0bed8a1dfb201db15362c44b4aeda
parent569162fefeda92c16ad263d65a7c6dc18cc630ef (diff)
downloadbcm5719-llvm-ae579a79c0d7c39e458af827f6a202c51fbc2767.tar.gz
bcm5719-llvm-ae579a79c0d7c39e458af827f6a202c51fbc2767.zip
Use "%zd" format specifier for printing number of testcases executed.
Summary: This helps to avoid signed integer overflow after running a fast fuzz target for several hours, e.g.: <...> Done -1097903291 runs in 54001 second(s) Reviewers: kcc Reviewed By: kcc Differential Revision: https://reviews.llvm.org/D29941 llvm-svn: 295112
-rw-r--r--llvm/lib/Fuzzer/FuzzerDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerDriver.cpp b/llvm/lib/Fuzzer/FuzzerDriver.cpp
index 01f2bc0413e..8bbafd3a43a 100644
--- a/llvm/lib/Fuzzer/FuzzerDriver.cpp
+++ b/llvm/lib/Fuzzer/FuzzerDriver.cpp
@@ -567,7 +567,7 @@ int FuzzerDriver(int *argc, char ***argv, UserCallback Callback) {
F->Loop();
if (Flags.verbosity)
- Printf("Done %d runs in %zd second(s)\n", F->getTotalNumberOfRuns(),
+ Printf("Done %zd runs in %zd second(s)\n", F->getTotalNumberOfRuns(),
F->secondsSinceProcessStartUp());
F->PrintFinalStats();
OpenPOWER on IntegriCloud