From 6f09140af0db049f32e60e9fe2cc2c336a1a0a1e Mon Sep 17 00:00:00 2001 From: Philip Gregor Date: Wed, 7 Aug 2024 20:46:02 -0700 Subject: [PATCH] tv-casting-app fixed 32-bit vs 64-bit formatting issue --- .../tv-casting-common/core/CastingPlayerDiscovery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp b/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp index 307bcb4167e980..92e0c218f70dc8 100644 --- a/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp +++ b/examples/tv-casting-app/tv-casting-common/core/CastingPlayerDiscovery.cpp @@ -63,7 +63,7 @@ CHIP_ERROR CastingPlayerDiscovery::StartDiscovery(uint32_t deviceTypeFilter) CHIP_ERROR CastingPlayerDiscovery::StopDiscovery() { - ChipLogProgress(Discovery, "CastingPlayerDiscovery::StopDiscovery() mCastingPlayers: %lu, mCastingPlayersInternal: %lu", + ChipLogProgress(Discovery, "CastingPlayerDiscovery::StopDiscovery() mCastingPlayers: %zu, mCastingPlayersInternal: %zu", mCastingPlayers.size(), mCastingPlayersInternal.size()); VerifyOrReturnError(mState == DISCOVERY_RUNNING, CHIP_ERROR_INCORRECT_STATE); ReturnErrorOnFailure(mCommissionableNodeController.StopDiscovery()); @@ -80,7 +80,7 @@ CHIP_ERROR CastingPlayerDiscovery::StopDiscovery() void CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal() { - ChipLogProgress(Discovery, "CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal() mCastingPlayersInternal: %lu", + ChipLogProgress(Discovery, "CastingPlayerDiscovery::ClearDisconnectedCastingPlayersInternal() mCastingPlayersInternal: %zu", mCastingPlayersInternal.size()); // Only clear the CastingPlayers in mCastingPlayersInternal with ConnectionState == CASTING_PLAYER_NOT_CONNECTED for (auto it = mCastingPlayersInternal.begin(); it != mCastingPlayersInternal.end();)