summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2017-06-03 02:36:01 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-03 02:36:01 +0000
commit2c8d90664014597b3fcf239ed433ad049368ce89 (patch)
treed63283004896a260899e28b7fef01ffe6fe08c30
parent5129e901048262c3d0d1ab9035d23ba78235e92f (diff)
parent620d0996ada36a75810d0330a8e94fc94be32aab (diff)
downloadnetd-2c8d90664014597b3fcf239ed433ad049368ce89.tar.gz
Merge "Work around new clang compiler warning." am: 05842e9349
am: 620d0996ad Change-Id: I3dce57ccb6b9bd9271b1d83b923ce57f7905b929
-rw-r--r--tests/benchmarks/connect_benchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/connect_benchmark.cpp b/tests/benchmarks/connect_benchmark.cpp
index 384feb1e..132844c2 100644
--- a/tests/benchmarks/connect_benchmark.cpp
+++ b/tests/benchmarks/connect_benchmark.cpp
@@ -171,7 +171,7 @@ static void ipv4_loopback(benchmark::State& state, const bool waitBetweenRuns) {
if (iterations > 0) {
latencies.resize(iterations);
sort(latencies.begin(), latencies.end());
- state.SetLabel(StringPrintf("%lld", (long long) latencies[iterations * 9 / 10]));
+ state.SetLabel(StringPrintf("%lld", (long long) latencies[iterations * 9 / 10]).c_str());
}
}
@@ -228,7 +228,7 @@ static void ipv6_loopback(benchmark::State& state, const bool waitBetweenRuns) {
if (iterations > 0) {
latencies.resize(iterations);
sort(latencies.begin(), latencies.end());
- state.SetLabel(StringPrintf("%lld", (long long) latencies[iterations * 9 / 10]));
+ state.SetLabel(StringPrintf("%lld", (long long) latencies[iterations * 9 / 10]).c_str());
}
}