Skip to content

Commit 52e4a64

Browse files
authored
Fix android build: add cast for formatting (#29916)
1 parent 07310c7 commit 52e4a64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ CHIP_ERROR CastingStore::WriteAll(std::vector<core::CastingPlayer> castingPlayer
333333
ChipLogProgress(AppServer,
334334
"CastingStore::WriteAll TLV(CastingStoreData).LengthWritten: %d bytes, CastingPlayers size: %lu "
335335
"and version: %d",
336-
tlvWriter.GetLengthWritten(), castingPlayers.size(), kCurrentCastingStoreDataVersion);
336+
tlvWriter.GetLengthWritten(), static_cast<unsigned long>(castingPlayers.size()),
337+
kCurrentCastingStoreDataVersion);
337338
return chip::DeviceLayer::PersistedStorage::KeyValueStoreMgr().Put(kCastingStoreDataKey, castingStoreData,
338339
tlvWriter.GetLengthWritten());
339340
}

0 commit comments

Comments
 (0)