diff options
Diffstat (limited to 'fbench')
-rw-r--r-- | fbench/src/fbench/fbench.cpp | 3 | ||||
-rw-r--r-- | fbench/src/test/httpclient.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/fbench/src/fbench/fbench.cpp b/fbench/src/fbench/fbench.cpp index 36c60e08ef7..205dc867950 100644 --- a/fbench/src/fbench/fbench.cpp +++ b/fbench/src/fbench/fbench.cpp @@ -13,6 +13,7 @@ #include <cstring> #include <cmath> #include <csignal> +#include <cinttypes> namespace { @@ -224,7 +225,7 @@ FBench::PrintSummary() if (_keepAlive) { printf("*** HTTP keep-alive statistics ***\n"); - printf("connection reuse count -- %zu\n", status._reuseCnt); + printf("connection reuse count -- %" PRIu64 "\n", status._reuseCnt); } printf("***************** Benchmark Summary *****************\n"); printf("clients: %8ld\n", _clients.size()); diff --git a/fbench/src/test/httpclient.cpp b/fbench/src/test/httpclient.cpp index 0d350c393c1..5d11663f1da 100644 --- a/fbench/src/test/httpclient.cpp +++ b/fbench/src/test/httpclient.cpp @@ -4,6 +4,7 @@ #include <httpclient/httpclient.h> #include <iostream> #include <thread> +#include <cinttypes> int main(int argc, char **argv) @@ -52,6 +53,6 @@ main(int argc, char **argv) } else { printf("ERROR: could not fetch URL content.\n"); } - printf("REUSE COUNT: %zu\n", client->GetReuseCount()); + printf("REUSE COUNT: %" PRIu64 "\n", client->GetReuseCount()); return 0; } |