Skip to content

Commit

Permalink
Remove redundant 0x from before %p in log formats. (#12519)
Browse files Browse the repository at this point in the history
Tried of seeing 0x0xabcdef01 in the logs.
  • Loading branch information
bzbarsky-apple authored Dec 3, 2021
1 parent 4d73d3f commit 1ad526b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/messaging/ExchangeMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void ExchangeManager::OnMessageReceived(const PacketHeader & packetHeader, const
ec->SetMsgRcvdFromPeer(true);
}

ChipLogDetail(ExchangeManager, "Found matching exchange: " ChipLogFormatExchange ", Delegate: 0x%p",
ChipLogDetail(ExchangeManager, "Found matching exchange: " ChipLogFormatExchange ", Delegate: %p",
ChipLogValueExchange(ec), ec->GetDelegate());

// Matched ExchangeContext; send to message handler.
Expand Down Expand Up @@ -290,7 +290,7 @@ void ExchangeManager::OnMessageReceived(const PacketHeader & packetHeader, const
return;
}

ChipLogDetail(ExchangeManager, "Handling via exchange: " ChipLogFormatExchange ", Delegate: 0x%p", ChipLogValueExchange(ec),
ChipLogDetail(ExchangeManager, "Handling via exchange: " ChipLogFormatExchange ", Delegate: %p", ChipLogValueExchange(ec),
ec->GetDelegate());

if (ec->IsEncryptionRequired() != packetHeader.IsEncrypted())
Expand Down

0 comments on commit 1ad526b

Please sign in to comment.