Skip to content

Commit

Permalink
Add logs, address review comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Feb 16, 2022
1 parent 8c04738 commit d94698c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/dnssd/Discovery_ImplPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d94698c

Please sign in to comment.