aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-06-16 17:03:40 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-06-16 17:03:40 -0700
commit909dd6ec8bf41d16073d98b891c8178d5cbd0936 (patch)
tree63f5ecc7a2cd4876dfdb226b013a2a030a8e0f5e /test/cpp/interop
parent560875239e4ce883b9c02d0bf003ce07d430154b (diff)
parent2a69beffaae1864bfe22759da742d65c1e044b1f (diff)
Merge branch 'master' of github.com:grpc/grpc into simplify_compression_interop
Diffstat (limited to 'test/cpp/interop')
-rw-r--r--test/cpp/interop/interop_client.cc14
-rw-r--r--test/cpp/interop/metrics_client.cc2
2 files changed, 9 insertions, 7 deletions
diff --git a/test/cpp/interop/interop_client.cc b/test/cpp/interop/interop_client.cc
index 509e8b97ab..b19d4e4a41 100644
--- a/test/cpp/interop/interop_client.cc
+++ b/test/cpp/interop/interop_client.cc
@@ -332,7 +332,7 @@ bool InteropClient::DoClientCompressedUnary() {
if (s.error_code() != grpc::StatusCode::INVALID_ARGUMENT) {
// The server isn't able to evaluate incoming compression, making the rest
// of this test moot.
- gpr_log(GPR_DEBUG, "Compressed unary request probe failed %s");
+ gpr_log(GPR_DEBUG, "Compressed unary request probe failed");
return false;
}
gpr_log(GPR_DEBUG, "Compressed unary request probe succeeded. Proceeding.");
@@ -452,7 +452,7 @@ bool InteropClient::DoResponseStreaming() {
// most likely due to connection failure.
gpr_log(GPR_ERROR,
"DoResponseStreaming(): Read fewer streams (%d) than "
- "response_stream_sizes.size() (%d)",
+ "response_stream_sizes.size() (%" PRIuPTR ")",
i, response_stream_sizes.size());
return TransientFailureOrAbort();
}
@@ -489,7 +489,7 @@ bool InteropClient::DoClientCompressedStreaming() {
if (s.error_code() != grpc::StatusCode::INVALID_ARGUMENT) {
// The server isn't able to evaluate incoming compression, making the rest
// of this test moot.
- gpr_log(GPR_DEBUG, "Compressed streaming request probe failed %s");
+ gpr_log(GPR_DEBUG, "Compressed streaming request probe failed");
return false;
}
gpr_log(GPR_DEBUG,
@@ -579,8 +579,10 @@ bool InteropClient::DoServerCompressedStreaming() {
// stream->Read() failed before reading all the expected messages. This
// is most likely due to a connection failure.
gpr_log(GPR_ERROR,
- "%s(): Responses read (k=%d) is "
- "less than the expected number of messages (%d)).",
+ "%s(): Responses read (k=%" PRIuPTR
+ ") is "
+ "less than the expected messages (i.e "
+ "response_stream_sizes.size() (%" PRIuPTR ")).",
__func__, k, response_stream_sizes.size());
return TransientFailureOrAbort();
}
@@ -666,7 +668,7 @@ bool InteropClient::DoHalfDuplex() {
// most likely due to a connection failure
gpr_log(GPR_ERROR,
"DoHalfDuplex(): Responses read (i=%d) are less than the expected "
- "number of messages response_stream_sizes.size() (%d)",
+ "number of messages response_stream_sizes.size() (%" PRIuPTR ")",
i, response_stream_sizes.size());
return TransientFailureOrAbort();
}
diff --git a/test/cpp/interop/metrics_client.cc b/test/cpp/interop/metrics_client.cc
index c8c2215fab..7a0cb994df 100644
--- a/test/cpp/interop/metrics_client.cc
+++ b/test/cpp/interop/metrics_client.cc
@@ -76,7 +76,7 @@ bool PrintMetrics(std::unique_ptr<MetricsService::Stub> stub, bool total_only,
while (reader->Read(&gauge_response)) {
if (gauge_response.value_case() == GaugeResponse::kLongValue) {
if (!total_only) {
- gpr_log(GPR_INFO, "%s: %ld", gauge_response.name().c_str(),
+ gpr_log(GPR_INFO, "%s: %lld", gauge_response.name().c_str(),
gauge_response.long_value());
}
overall_qps += gauge_response.long_value();