Skip to content

Commit

Permalink
Fix compilation issues when enabling RMP_TICKLESS_DEBUG (project-chip…
Browse files Browse the repository at this point in the history
  • Loading branch information
kianooshkarami authored Sep 28, 2021
1 parent b191cff commit d3d0d06
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/messaging/ReliableMessageMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ void ReliableMessageMgr::TicklessDebugDumpRetransTable(const char * log)
ChipLogDetail(ExchangeManager,
"EC:" ChipLogFormatExchange " MessageCounter:" ChipLogFormatMessageCounter
" NextRetransTimeCtr:%04" PRIX16,
ChipLogValueExchange(entry.rc->GetExchangeContext()), entry.messageCounter, entry.nextRetransTimeTick);
ChipLogValueExchange(entry.rc->GetExchangeContext()), entry.retainedBuf.GetMessageCounter(),
entry.nextRetransTimeTick);
}
}
}
Expand Down Expand Up @@ -205,7 +206,7 @@ void ReliableMessageMgr::ExpireTicks()
uint64_t deltaTicks = GetTickCounterFromTimeDelta(now);

#if defined(RMP_TICKLESS_DEBUG)
ChipLogDetail(ExchangeManager, "ReliableMessageMgr::ExpireTicks at %" PRIu64 ", %" PRIu64 ", %u", now, mTimeStampBase,
ChipLogDetail(ExchangeManager, "ReliableMessageMgr::ExpireTicks at %" PRIu64 ", %" PRIu64 ", %" PRIu64, now, mTimeStampBase,
deltaTicks);
#endif

Expand Down Expand Up @@ -462,7 +463,7 @@ void ReliableMessageMgr::StartTimer()
nextWakeTimeTick = rc->mNextAckTimeTick;
foundWake = true;
#if defined(RMP_TICKLESS_DEBUG)
ChipLogDetail(ExchangeManager, "ReliableMessageMgr::StartTimer next ACK time %u", nextWakeTimeTick);
ChipLogDetail(ExchangeManager, "ReliableMessageMgr::StartTimer next ACK time %" PRIu64, nextWakeTimeTick);
#endif
}
});
Expand All @@ -478,7 +479,7 @@ void ReliableMessageMgr::StartTimer()
nextWakeTimeTick = entry.nextRetransTimeTick;
foundWake = true;
#if defined(RMP_TICKLESS_DEBUG)
ChipLogDetail(ExchangeManager, "ReliableMessageMgr::StartTimer RetransTime %u", nextWakeTimeTick);
ChipLogDetail(ExchangeManager, "ReliableMessageMgr::StartTimer RetransTime %" PRIu64, nextWakeTimeTick);
#endif
}
}
Expand Down

0 comments on commit d3d0d06

Please sign in to comment.