From 345d9ab375088c674949b08b1cc208db21fad3b4 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 15 Mar 2023 10:40:40 +0100 Subject: Fix format strings. --- vespalib/src/tests/coro/active_work/active_work_test.cpp | 5 +++-- 1 file 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 #include #include +#include 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() -- cgit v1.2.3