From 2afe75e7c4b1e20b8b13d1f198af5a34de553664 Mon Sep 17 00:00:00 2001 From: hai007 Date: Tue, 4 May 2021 17:12:01 -0700 Subject: [PATCH] [Nearby] Fix incorrect format on log messages PiperOrigin-RevId: 372026660 --- cpp/core/internal/base_pcp_handler.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/core/internal/base_pcp_handler.cc b/cpp/core/internal/base_pcp_handler.cc index 30655b2d..a012c09c 100644 --- a/cpp/core/internal/base_pcp_handler.cc +++ b/cpp/core/internal/base_pcp_handler.cc @@ -1149,9 +1149,9 @@ bool BasePcpHandler::BreakTie(ClientProxy* client, NEARBY_LOG( INFO, - "In onIncomingConnection(%d) for client=%" PRIx64 ", found a collision " - "with endpoint %s. We've already sent a connection request to them with" - " nonce %d, but they're also trying to connect to us with nonce %d.", + "In onIncomingConnection(%s) for client %d, found a collision with " + "endpoint %s. We've already sent a connection request to them with " + "nonce %d, but they're also trying to connect to us with nonce %d.", endpoint_channel->GetMedium(), client->GetClientId(), endpoint_id.c_str(), info.nonce, incoming_nonce); // Break the lowest connection. In the (extremely) rare case of a tie, break @@ -1162,7 +1162,7 @@ bool BasePcpHandler::BreakTie(ClientProxy* client, NEARBY_LOG( INFO, - "In onIncomingConnection(%d) for client=%" PRIx64 + "In onIncomingConnection(%s) for client=%" PRIx64 ", cleaned up the collision with endpoint(id=%s) by closing their " "channel.", endpoint_channel->GetMedium(), client->GetClientId(), @@ -1173,7 +1173,7 @@ bool BasePcpHandler::BreakTie(ClientProxy* client, // connection continue on. ProcessTieBreakLoss(client, endpoint_id, &info); NEARBY_LOG(INFO, - "In onIncomingConnection(%d) for client=%" PRIx64 + "In onIncomingConnection(%s) for client=%" PRIx64 ", cleaned up the collision with endpoint %s by closing our " "channel and notifying our client of the failure.", endpoint_channel->GetMedium(), client->GetClientId(),