printf portability sucks

pull/7019/head
David Garcia Quintas 9 years ago
parent 83a6a828b0
commit 193a5c737f
  1. 8
      test/cpp/interop/interop_client.cc

@ -451,7 +451,7 @@ bool InteropClient::DoResponseStreaming() {
// most likely due to connection failure. // most likely due to connection failure.
gpr_log(GPR_ERROR, gpr_log(GPR_ERROR,
"DoResponseStreaming(): Read fewer streams (%d) than " "DoResponseStreaming(): Read fewer streams (%d) than "
"response_stream_sizes.size() (%zu)", "response_stream_sizes.size() (%" PRIuPTR ")",
i, response_stream_sizes.size()); i, response_stream_sizes.size());
return TransientFailureOrAbort(); return TransientFailureOrAbort();
} }
@ -577,8 +577,8 @@ bool InteropClient::DoServerCompressedStreaming() {
// stream->Read() failed before reading all the expected messages. This // stream->Read() failed before reading all the expected messages. This
// is most likely due to a connection failure. // is most likely due to a connection failure.
gpr_log(GPR_ERROR, gpr_log(GPR_ERROR,
"%s(): Responses read (k=%zu) is less than the expected number of " "%s(): Responses read (k=%" PRIuPTR
"messages (%zu).", ") is less than the expected number of messages (%" PRIuPTR ").",
__func__, k, sizes.size()); __func__, k, sizes.size());
return TransientFailureOrAbort(); return TransientFailureOrAbort();
} }
@ -664,7 +664,7 @@ bool InteropClient::DoHalfDuplex() {
// most likely due to a connection failure // most likely due to a connection failure
gpr_log(GPR_ERROR, gpr_log(GPR_ERROR,
"DoHalfDuplex(): Responses read (i=%d) are less than the expected " "DoHalfDuplex(): Responses read (i=%d) are less than the expected "
"number of messages response_stream_sizes.size() (%zu)", "number of messages response_stream_sizes.size() (%" PRIuPTR ")",
i, response_stream_sizes.size()); i, response_stream_sizes.size());
return TransientFailureOrAbort(); return TransientFailureOrAbort();
} }

Loading…
Cancel
Save