From ce633f37f0e3d4b141ca023f2d8e1b3d0e20265c Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Tue, 7 Jan 2020 20:39:25 +0100 Subject: Fix format strings. --- staging_vespalib/src/tests/clock/clock_benchmark.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'staging_vespalib') 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 #include #include +#include #include #include #include @@ -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 -- cgit v1.2.3