diff options
author | David Garcia Quintas <dgq@google.com> | 2016-06-15 18:11:08 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-06-15 18:11:08 -0700 |
commit | 2a6c68361adbf10af5e4971b064aaf61c20cdbfc (patch) | |
tree | 045ec10bd0bed6a85f213083f1e2f83215edb92d /src/core | |
parent | fa9b7c1bc6488be17d18007f45c57dac39ea5b79 (diff) |
Fixed printf/gpr_log format.
The faulty line is behind a preprocessor define that isn't on by default.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ext/client_config/lb_policy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ext/client_config/lb_policy.c b/src/core/ext/client_config/lb_policy.c index 20535398d6..dc1612428e 100644 --- a/src/core/ext/client_config/lb_policy.c +++ b/src/core/ext/client_config/lb_policy.c @@ -60,8 +60,9 @@ static gpr_atm ref_mutate(grpc_lb_policy *c, gpr_atm delta, : gpr_atm_no_barrier_fetch_add(&c->ref_pair, delta); #ifdef GRPC_LB_POLICY_REFCOUNT_DEBUG gpr_log(file, line, GPR_LOG_SEVERITY_DEBUG, - "LB_POLICY: %p % 12s 0x%08x -> 0x%08x [%s]", c, purpose, old_val, - old_val + delta, reason); + "LB_POLICY: 0x%" PRIxPTR " %12s 0x%" PRIxPTR " -> 0x%" PRIxPTR + " [%s]", + (intptr_t)c, purpose, old_val, old_val + delta, reason); #endif return old_val; } |