diff --git a/examples/tv-casting-app/tv-casting-common/src/CastingServer.cpp b/examples/tv-casting-app/tv-casting-common/src/CastingServer.cpp index 0b6e56fce72b77..80654c818bece7 100644 --- a/examples/tv-casting-app/tv-casting-common/src/CastingServer.cpp +++ b/examples/tv-casting-app/tv-casting-common/src/CastingServer.cpp @@ -153,7 +153,8 @@ chip::Inet::IPAddress * CastingServer::getIpAddressForUDCRequest(chip::Inet::IPA if (ipAddresses[i].IsIPv4()) { ipIndexToUse = i; - ChipLogProgress(AppServer, "Found IPv4 address at index: %lu - prioritizing use of IPv4", ipIndexToUse); + ChipLogProgress(AppServer, "Found IPv4 address at index: %lu - prioritizing use of IPv4", + static_cast(ipIndexToUse)); break; }