diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-01-07 20:39:25 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-01-07 20:39:25 +0100 |
commit | ce633f37f0e3d4b141ca023f2d8e1b3d0e20265c (patch) | |
tree | 147d0d5e590ab36e09cfa09e40916e06865e2094 /staging_vespalib | |
parent | 812324f02d0ed2ec08bf6b71acce5df766a40f53 (diff) |
Fix format strings.
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/tests/clock/clock_benchmark.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staging_vespalib/src/tests/clock/clock_benchmark.cpp b/staging_vespalib/src/tests/clock/clock_benchmark.cpp index cbf7275f06e..6728d4cc045 100644 --- a/staging_vespalib/src/tests/clock/clock_benchmark.cpp +++ b/staging_vespalib/src/tests/clock/clock_benchmark.cpp @@ -5,6 +5,7 @@ #include <cassert> #include <vector> #include <atomic> +#include <cinttypes> #include <cstring> #include <condition_variable> #include <mutex> @@ -123,7 +124,7 @@ void benchmark(const char * desc, FastOS_ThreadPool & pool, uint64_t samples, ui count[i] += sampler->_count[i]; } } - printf("%s: Took %ld clock samples in %2.3f with [%ld, %ld, %ld] counts\n", desc, samples, to_s(steady_clock::now() - start), count[0], count[1], count[2]); + printf("%s: Took %" PRId64 " clock samples in %2.3f with [%" PRId64 ", %" PRId64 ", %" PRId64 "] counts\n", desc, samples, to_s(steady_clock::now() - start), count[0], count[1], count[2]); } int |