diff options
author | Mark D. Roth <roth@google.com> | 2016-08-23 15:08:37 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-08-23 15:08:37 -0700 |
commit | 370ef8941e261a19c53446cc5d337f59dca657d2 (patch) | |
tree | 613af72aca2b50f3dd1701ada119710c3be43862 /src/core | |
parent | af00d8bfb24f6debdc2a0ac78d2dc5bf67fc01e4 (diff) |
Fix portability problem.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/channel/message_size_filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/channel/message_size_filter.c b/src/core/lib/channel/message_size_filter.c index 264c07ca8e..153f578a14 100644 --- a/src/core/lib/channel/message_size_filter.c +++ b/src/core/lib/channel/message_size_filter.c @@ -67,7 +67,7 @@ static void recv_message_ready(grpc_exec_ctx* exec_ctx, void* user_data, if ((*calld->recv_message)->length > chand->max_recv_size) { char* message_string; gpr_asprintf(&message_string, "Received message larger than max (%lu)", - chand->max_recv_size); + (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( @@ -89,7 +89,7 @@ static void start_transport_stream_op(grpc_exec_ctx* exec_ctx, op->send_message->length > chand->max_send_size) { char* message_string; gpr_asprintf(&message_string, "Sent message larger than max (%lu)", - chand->max_send_size); + (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( |