diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-03-15 10:40:40 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-03-15 10:40:40 +0100 |
commit | 345d9ab375088c674949b08b1cc208db21fad3b4 (patch) | |
tree | c505fcb5454738ef26aac7312fe04738f28360fc | |
parent | 772568949a67767f06784e8e9350c487f36bf2e2 (diff) |
Fix format strings.
-rw-r--r-- | vespalib/src/tests/coro/active_work/active_work_test.cpp | 5 |
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() |