From 8a2046f8f41576dcefa7838d6da82bf63194695e Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 2 Dec 2021 19:31:01 -0500 Subject: [PATCH] Remove redundant 0x from before %p in log formats. (#12519) Tried of seeing 0x0xabcdef01 in the logs. --- src/messaging/ExchangeMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messaging/ExchangeMgr.cpp b/src/messaging/ExchangeMgr.cpp index 112821e9dfc796..932142bc4755cb 100644 --- a/src/messaging/ExchangeMgr.cpp +++ b/src/messaging/ExchangeMgr.cpp @@ -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. @@ -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())