[Gpr_To_Absl_Logging] Fixing minor bug (#37284)

[Gpr_To_Absl_Logging] Fixing minor bug

Mistake made during gpr to absl migration .

<img width="1300" alt="Screenshot 2024-07-23 at 4 28 59 PM" src="https://github.com/user-attachments/assets/e279fb7e-8dbc-4215-9d57-19efd40c24d8">

Closes #37284

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37284 from tanvi-jagtap:fix_endpoint_cfstream f7a4efc57f
PiperOrigin-RevId: 655437211
pull/37283/head
Tanvi Jagtap 6 months ago committed by Copybara-Service
parent 25dea6e8cc
commit 8bbe0574a1
  1. 8
      src/core/lib/iomgr/endpoint_cfstream.cc

@ -76,8 +76,8 @@ static void CFStreamUnref(CFStreamEndpoint* ep, const char* reason,
const char* file, int line) {
if (GRPC_TRACE_FLAG_ENABLED(tcp)) {
gpr_atm val = gpr_atm_no_barrier_load(&ep->refcount.count);
VLOG(2) << "CFStream endpoint unref " << ep << " : " << reason << " " << val
<< " -> " << val - 1;
VLOG(2).AtLocation(file, line) << "CFStream endpoint unref " << ep << " : "
<< reason << " " << val << " -> " << val - 1;
}
if (gpr_unref(&ep->refcount)) {
CFStreamFree(ep);
@ -87,8 +87,8 @@ static void CFStreamRef(CFStreamEndpoint* ep, const char* reason,
const char* file, int line) {
if (GRPC_TRACE_FLAG_ENABLED(tcp)) {
gpr_atm val = gpr_atm_no_barrier_load(&ep->refcount.count);
VLOG(2) << "CFStream endpoint ref " << ep << " : " << reason << " " << val
<< " -> " << val + 1;
VLOG(2).AtLocation(file, line) << "CFStream endpoint ref " << ep << " : "
<< reason << " " << val << " -> " << val + 1;
}
gpr_ref(&ep->refcount);
}

Loading…
Cancel
Save