aboutsummaryrefslogtreecommitdiffstats
path: root/fbench
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-03-12 19:08:19 +0100
committerTor Egge <Tor.Egge@broadpark.no>2019-03-12 19:08:19 +0100
commitae69850ed3445b5569035862e95b95d12f37051b (patch)
tree8b62360d4a9571abe5811a6884c35dbe3bf81f99 /fbench
parente3737a16d211e0cc5b5ad113ea5e3834a47b7ace (diff)
Fix format strings in fbench module.
Diffstat (limited to 'fbench')
-rw-r--r--fbench/src/fbench/fbench.cpp3
-rw-r--r--fbench/src/test/httpclient.cpp3
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;
}