diff options
author | Craig Tiller <ctiller@google.com> | 2017-09-05 12:46:48 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-09-05 12:46:48 -0700 |
commit | 7d079947b5692768cd497a3e288c545ee5a82bb5 (patch) | |
tree | 1553da02beb4ea12eb14308373df690eb9ba3644 /src/core/lib | |
parent | 9bebf8b22a8e058a290f7c7e4b7278c193d17a81 (diff) |
Mac compilation fixes
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/iomgr/executor.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/lib/iomgr/executor.c b/src/core/lib/iomgr/executor.c index 0d38b2334c..8496ce23c0 100644 --- a/src/core/lib/iomgr/executor.c +++ b/src/core/lib/iomgr/executor.c @@ -151,9 +151,8 @@ static void executor_thread(void *arg) { size_t subtract_depth = 0; for (;;) { if (GRPC_TRACER_ON(executor_trace)) { - gpr_log(GPR_DEBUG, - "EXECUTOR[%" PRIdPTR "]: step (sub_depth=%" PRIdPTR ")", - ts - g_thread_state, subtract_depth); + gpr_log(GPR_DEBUG, "EXECUTOR[%d]: step (sub_depth=%" PRIdPTR ")", + (int)(ts - g_thread_state), subtract_depth); } gpr_mu_lock(&ts->mu); ts->depth -= subtract_depth; @@ -163,8 +162,8 @@ static void executor_thread(void *arg) { } if (ts->shutdown) { if (GRPC_TRACER_ON(executor_trace)) { - gpr_log(GPR_DEBUG, "EXECUTOR[%" PRIdPTR "]: shutdown", - ts - g_thread_state); + gpr_log(GPR_DEBUG, "EXECUTOR[%d]: shutdown", + (int)(ts - g_thread_state)); } gpr_mu_unlock(&ts->mu); break; @@ -173,8 +172,7 @@ static void executor_thread(void *arg) { ts->elems = (grpc_closure_list)GRPC_CLOSURE_LIST_INIT; gpr_mu_unlock(&ts->mu); if (GRPC_TRACER_ON(executor_trace)) { - gpr_log(GPR_DEBUG, "EXECUTOR[%" PRIdPTR "]: execute", - ts - g_thread_state); + gpr_log(GPR_DEBUG, "EXECUTOR[%d]: execute", (int)(ts - g_thread_state)); } subtract_depth = run_closures(&exec_ctx, exec); |