Skip to content

Commit

Permalink
Fix PRId64 log message for efr32 devices (#15978)
Browse files Browse the repository at this point in the history
* fix mg24 light-switch

* PR comments
  • Loading branch information
mkardous-silabs authored and pull[bot] committed Feb 12, 2024
1 parent 95359e3 commit 1035848
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions src/transport/SessionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ CHIP_ERROR SessionManager::SendPreparedMessage(const SessionHandle & sessionHand

ChipLogProgress(Inet,
"Sending %s msg %p with MessageCounter:" ChipLogFormatMessageCounter " to %d"
" at monotonic time: %" PRId64
" at monotonic time: " ChipLogFormatX64
" msec to Multicast IPV6 address : %s with GroupID of %d and fabric Id of %d",
"encrypted", &preparedMessage, preparedMessage.GetMessageCounter(), groupSession->GetGroupId(),
System::SystemClock().GetMonotonicMilliseconds64().count(), addressStr, groupSession->GetGroupId(),
groupSession->GetFabricIndex());
"encrypted group", &preparedMessage, preparedMessage.GetMessageCounter(), groupSession->GetGroupId(),
ChipLogValueX64(System::SystemClock().GetMonotonicMilliseconds64().count()), addressStr,
groupSession->GetGroupId(), groupSession->GetFabricIndex());
}
break;
case Transport::Session::SessionType::kSecure: {
Expand All @@ -289,10 +289,10 @@ CHIP_ERROR SessionManager::SendPreparedMessage(const SessionHandle & sessionHand

ChipLogProgress(Inet,
"Sending %s msg %p with MessageCounter:" ChipLogFormatMessageCounter " to 0x" ChipLogFormatX64
" (%u) at monotonic time: %" PRId64 " msec",
" (%u) at monotonic time: " ChipLogFormatX64 " msec",
"encrypted", &preparedMessage, preparedMessage.GetMessageCounter(),
ChipLogValueX64(secure->GetPeerNodeId()), secure->GetFabricIndex(),
System::SystemClock().GetMonotonicMilliseconds64().count());
ChipLogValueX64(System::SystemClock().GetMonotonicMilliseconds64().count()));
}
break;
case Transport::Session::SessionType::kUnauthenticated: {
Expand All @@ -302,9 +302,10 @@ CHIP_ERROR SessionManager::SendPreparedMessage(const SessionHandle & sessionHand

ChipLogProgress(Inet,
"Sending %s msg %p with MessageCounter:" ChipLogFormatMessageCounter " to 0x" ChipLogFormatX64
" at monotonic time: %" PRId64 " msec",
" at monotonic time: " ChipLogFormatX64 " msec",
sessionHandle->GetSessionTypeString(), &preparedMessage, preparedMessage.GetMessageCounter(),
ChipLogValueX64(kUndefinedNodeId), System::SystemClock().GetMonotonicMilliseconds64().count());
ChipLogValueX64(kUndefinedNodeId),
ChipLogValueX64(System::SystemClock().GetMonotonicMilliseconds64().count()));
}
break;
default:
Expand Down

0 comments on commit 1035848

Please sign in to comment.