Skip to content

Commit

Permalink
Replace %zu in log format
Browse files Browse the repository at this point in the history
  • Loading branch information
jtung-apple committed Jan 11, 2023
1 parent c6fb866 commit a82a9d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/InteractionModelEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1588,16 +1588,16 @@ CHIP_ERROR InteractionModelEngine::ResumeSubscriptions()
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
SubscriptionResumptionStorage::SubscriptionIndex subscriberIndex;
CHIP_ERROR err = mpSubscriptionResumptionStorage->LoadIndex(subscriberIndex);
ChipLogProgress(InteractionModel, "%zu subscriber nodes to resume.. (error %" CHIP_ERROR_FORMAT ")", subscriberIndex.mSize,
err.Format());
ChipLogProgress(InteractionModel, "%u subscriber nodes to resume.. (error %" CHIP_ERROR_FORMAT ")",
static_cast<unsigned>(subscriberIndex.mSize), err.Format());
for (size_t i = 0; i < subscriberIndex.mSize; i++)
{
std::vector<SubscriptionResumptionStorage::SubscriptionInfo> subscriptions;
err = mpSubscriptionResumptionStorage->FindByScopedNodeId(subscriberIndex.mNodes[i], subscriptions);

ChipLogProgress(InteractionModel,
"\tNode " ChipLogFormatScopedNodeId ": Loaded %zu subscriptions.. (error %" CHIP_ERROR_FORMAT ")",
ChipLogValueScopedNodeId(subscriberIndex.mNodes[i]), subscriptions.size(), err.Format());
ChipLogProgress(
InteractionModel, "\tNode " ChipLogFormatScopedNodeId ": Loaded %u subscriptions.. (error %" CHIP_ERROR_FORMAT ")",
ChipLogValueScopedNodeId(subscriberIndex.mNodes[i]), static_cast<unsigned>(subscriptions.size()), err.Format());

for (auto & subscriptionInfo : subscriptions)
{
Expand Down

0 comments on commit a82a9d0

Please sign in to comment.