From d94698c69cf6c9c67f8f94fb20ea980b7a6609d1 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 16 Feb 2022 16:35:39 -0500 Subject: [PATCH] Add logs, address review comment. --- src/lib/dnssd/Discovery_ImplPlatform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/dnssd/Discovery_ImplPlatform.cpp b/src/lib/dnssd/Discovery_ImplPlatform.cpp index 019fd7c8c75dcf..1667745f4b572d 100644 --- a/src/lib/dnssd/Discovery_ImplPlatform.cpp +++ b/src/lib/dnssd/Discovery_ImplPlatform.cpp @@ -70,6 +70,7 @@ static void HandleNodeResolve(void * context, DnssdService * result, const Span< if (addressesFound == ArraySize(nodeData.ipAddress)) { // Out of space. + ChipLogProgress(Discovery, "Can't add more IPs to DiscoveredNodeData"); break; } nodeData.ipAddress[addressesFound] = ip; @@ -144,6 +145,7 @@ static void HandleNodeIdResolve(void * context, DnssdService * result, const Spa if (addressesFound == ArraySize(nodeData.mAddress)) { // Out of space. + ChipLogProgress(Discovery, "Can't add more IPs to ResolvedNodeData"); break; } nodeData.mAddress[addressesFound] = ip;