Skip to content

Commit

Permalink
Update the log format of ExchangeMgr when a message a received to use…
Browse files Browse the repository at this point in the history
… hex notation instead of decimal, as it matches up the source code and makes it easier to understand (#8504)
  • Loading branch information
vivien-apple authored and pull[bot] committed Aug 13, 2021
1 parent d76b03e commit 8984661
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/messaging/ExchangeMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8984661

Please sign in to comment.