From 8984661bbf7259f09b8c142c1d099f698b20c100 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Thu, 22 Jul 2021 16:28:57 +0200 Subject: [PATCH] Update the log format of ExchangeMgr when a message a received to use hex notation instead of decimal, as it matches up the source code and makes it easier to understand (#8504) --- src/messaging/ExchangeMgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/messaging/ExchangeMgr.cpp b/src/messaging/ExchangeMgr.cpp index baff1e24b48657..a75c14aa752c24 100644 --- a/src/messaging/ExchangeMgr.cpp +++ b/src/messaging/ExchangeMgr.cpp @@ -201,9 +201,9 @@ void ExchangeManager::OnMessageReceived(const PacketHeader & packetHeader, const { UnsolicitedMessageHandler * matchingUMH = nullptr; - ChipLogProgress(ExchangeManager, "Received message of type %d and protocolId %" PRIu32 " on exchange %d", - payloadHeader.GetMessageType(), payloadHeader.GetProtocolID().ToFullyQualifiedSpecForm(), - payloadHeader.GetExchangeID()); + ChipLogProgress(ExchangeManager, "Received message of type 0x%02x with vendorId 0x%04x and protocolId 0x%04x on exchange %d", + payloadHeader.GetMessageType(), payloadHeader.GetProtocolID().GetVendorId(), + payloadHeader.GetProtocolID().GetProtocolId(), payloadHeader.GetExchangeID()); MessageFlags msgFlags; if (isDuplicate == DuplicateMessage::Yes)