Skip to content

Commit 7219ad2

Browse files
Fixing 32-bit vs 64-bit size() log format issue (project-chip#35432)
1 parent 2bdbc76 commit 7219ad2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/tv-casting-app/tv-casting-common/support/EndpointListLoader.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ void EndpointListLoader::Complete()
135135
EndpointAttributes endpointAttributes = mEndpointAttributesList[i];
136136
std::shared_ptr<Endpoint> endpoint =
137137
std::make_shared<Endpoint>(CastingPlayer::GetTargetCastingPlayer(), endpointAttributes);
138-
ChipLogProgress(AppServer, "EndpointListLoader::Complete() mEndpointServerLists[i].size: %lu ",
139-
mEndpointServerLists[i].size());
138+
ChipLogProgress(AppServer, "EndpointListLoader::Complete() mEndpointServerLists[i].size: %lu",
139+
static_cast<unsigned long>(mEndpointServerLists[i].size()));
140140
endpoint->RegisterClusters(mEndpointServerLists[i]);
141141
CastingPlayer::GetTargetCastingPlayer()->RegisterEndpoint(endpoint);
142142
}

0 commit comments

Comments
 (0)