aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-12-11 15:21:20 +0100
committerTor Egge <Tor.Egge@online.no>2021-12-11 15:21:20 +0100
commit5d95761143ba0c06946c82679c0dd8f566dc9dba (patch)
tree7556f939823d3bd88e9a616582f52d387fc4fe36 /vespalib
parent0848eb7384b5ee31442c5102c60363bc1190804a (diff)
Fix format string (Use PRId64 macro when argument type is int64_t).
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/tests/hwaccelrated/hwaccelrated_bench.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/vespalib/src/tests/hwaccelrated/hwaccelrated_bench.cpp b/vespalib/src/tests/hwaccelrated/hwaccelrated_bench.cpp
index 9984cfca440..4b0141596e7 100644
--- a/vespalib/src/tests/hwaccelrated/hwaccelrated_bench.cpp
+++ b/vespalib/src/tests/hwaccelrated/hwaccelrated_bench.cpp
@@ -3,7 +3,8 @@
#include <vespa/vespalib/hwaccelrated/iaccelrated.h>
#include <vespa/vespalib/hwaccelrated/generic.h>
#include <vespa/vespalib/util/time.h>
-#
+#include <cinttypes>
+
using namespace vespalib;
template<typename T>
@@ -28,7 +29,7 @@ benchmarkEuclideanDistance(const hwaccelrated::IAccelrated & accel, size_t sz, s
sumOfSums += sum;
}
duration elapsed = steady_clock::now() - start;
- printf("sum=%f of N=%zu and vector length=%zu took %ld\n", sumOfSums, count, sz, count_ms(elapsed));
+ printf("sum=%f of N=%zu and vector length=%zu took %" PRId64 "\n", sumOfSums, count, sz, count_ms(elapsed));
}
void