From b928fd496efbe2265169077bcfdf684f7ad6aea3 Mon Sep 17 00:00:00 2001 From: ncteisen Date: Thu, 4 Jan 2018 10:13:42 -0800 Subject: [PATCH] Fix portability build --- src/core/lib/channel/channel_tracer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lib/channel/channel_tracer.cc b/src/core/lib/channel/channel_tracer.cc index 92be5987a1f..e2d3b7ae088 100644 --- a/src/core/lib/channel/channel_tracer.cc +++ b/src/core/lib/channel/channel_tracer.cc @@ -241,7 +241,7 @@ static void populate_node_data(grpc_trace_node* node, seen_tracers* tracker, false); if (node->referenced_tracer != nullptr) { char* uuid_str; - gpr_asprintf(&uuid_str, "%ld", node->referenced_tracer->channel_uuid); + gpr_asprintf(&uuid_str, "%" PRIdPTR, node->referenced_tracer->channel_uuid); child = grpc_json_create_child(child, json, "uuid", uuid_str, GRPC_JSON_NUMBER, true); if (children && !seen_tracers_check(tracker, node->referenced_tracer)) { @@ -272,7 +272,7 @@ static void populate_tracer_data(grpc_channel_tracer* tracer, grpc_json* child = nullptr; char* uuid_str; - gpr_asprintf(&uuid_str, "%ld", tracer->channel_uuid); + gpr_asprintf(&uuid_str, "%" PRIdPTR, tracer->channel_uuid); child = grpc_json_create_child(child, channel_data, "uuid", uuid_str, GRPC_JSON_NUMBER, true); char* num_nodes_logged_str;