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 and pull[bot] committed Feb 17, 2022
1 parent df81eac commit 828ad14
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 828ad14

Please sign in to comment.