diff options
author | Mark D. Roth <roth@google.com> | 2016-09-19 07:19:15 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-09-19 07:19:15 -0700 |
commit | 843ec78263a2b19f935855bb58f858abd9ac0054 (patch) | |
tree | 8e211d060732d6cc612133340071f0bdb42e2d71 /src/core/lib | |
parent | 34dac9d4ca3c0eeccfe7b797b0390bac7d2a8e7c (diff) |
Fix Windows printf formatting bug.
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/channel/message_size_filter.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/lib/channel/message_size_filter.c b/src/core/lib/channel/message_size_filter.c index f8bb1134ec..6613785dea 100644 --- a/src/core/lib/channel/message_size_filter.c +++ b/src/core/lib/channel/message_size_filter.c @@ -69,9 +69,9 @@ static void recv_message_ready(grpc_exec_ctx* exec_ctx, void* user_data, if (*calld->recv_message != NULL && (*calld->recv_message)->length > chand->max_recv_size) { char* message_string; - gpr_asprintf(&message_string, - "Received message larger than max (%u vs. %zu)", - (*calld->recv_message)->length, chand->max_recv_size); + gpr_asprintf( + &message_string, "Received message larger than max (%u vs. %lu)", + (*calld->recv_message)->length, (unsigned long)chand->max_recv_size); gpr_slice message = gpr_slice_from_copied_string(message_string); gpr_free(message_string); grpc_call_element_send_cancel_with_message( @@ -91,8 +91,8 @@ static void start_transport_stream_op(grpc_exec_ctx* exec_ctx, if (op->send_message != NULL && op->send_message->length > chand->max_send_size) { char* message_string; - gpr_asprintf(&message_string, "Sent message larger than max (%u vs. %zu)", - op->send_message->length, chand->max_send_size); + gpr_asprintf(&message_string, "Sent message larger than max (%u vs. %lu)", + op->send_message->length, (unsigned long)chand->max_send_size); gpr_slice message = gpr_slice_from_copied_string(message_string); gpr_free(message_string); grpc_call_element_send_cancel_with_message( |