Fix portability build

reviewable/pr13883/r1
ncteisen 7 years ago
parent 5268185846
commit b928fd496e
  1. 4
      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;

Loading…
Cancel
Save