aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2023-03-15 12:26:58 +0100
committerGitHub <noreply@github.com>2023-03-15 12:26:58 +0100
commit9b8239bc7351f161154d537b8a03e2a4d0e93ba1 (patch)
tree53f4b16805bd79c66363cbe2059aeeae46241d0f
parentaf39e418088b819aa2a32d1841cbddffec3d12df (diff)
parent345d9ab375088c674949b08b1cc208db21fad3b4 (diff)
Merge pull request #26444 from vespa-engine/toregge/fix-format-string
Fix format strings.
-rw-r--r--vespalib/src/tests/coro/active_work/active_work_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/vespalib/src/tests/coro/active_work/active_work_test.cpp b/vespalib/src/tests/coro/active_work/active_work_test.cpp
index 26c0c3dd71a..6404705fff5 100644
--- a/vespalib/src/tests/coro/active_work/active_work_test.cpp
+++ b/vespalib/src/tests/coro/active_work/active_work_test.cpp
@@ -7,6 +7,7 @@
#include <vespa/vespalib/util/time.h>
#include <vespa/vespalib/util/threadstackexecutor.h>
#include <vespa/vespalib/gtest/gtest.h>
+#include <cinttypes>
using namespace vespalib;
using namespace vespalib::coro;
@@ -49,7 +50,7 @@ TEST(ActiveWorkTest, run_expensive_subtasks_concurrently) {
make_expensive_task));
auto td = steady_clock::now() - t0;
EXPECT_EQ(result, 136);
- fprintf(stderr, "time spent: %zu ms\n", count_ms(td));
+ fprintf(stderr, "time spent: %" PRId64 " ms\n", count_ms(td));
}
TEST(ActiveWorkTest, run_cheap_subtasks_concurrently) {
@@ -60,7 +61,7 @@ TEST(ActiveWorkTest, run_cheap_subtasks_concurrently) {
make_cheap_task));
auto td = steady_clock::now() - t0;
EXPECT_EQ(result, 136);
- fprintf(stderr, "time spent: %zu ms\n", count_ms(td));
+ fprintf(stderr, "time spent: %" PRId64 " ms\n", count_ms(td));
}
GTEST_MAIN_RUN_ALL_TESTS()