Skip to content

Commit

Permalink
[darwin-framework-tool] Update some NSLog format to works properly fo…
Browse files Browse the repository at this point in the history
…r NSEnum/NSOptions (#23112)
  • Loading branch information
vivien-apple authored and pull[bot] committed Jul 31, 2023
1 parent c42b2f5 commit 2374ee9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ @interface CHIPToolDeviceControllerDelegate ()
@implementation CHIPToolDeviceControllerDelegate
- (void)onStatusUpdate:(MTRCommissioningStatus)status
{
NSLog(@"Pairing Status Update: %lu", status);
NSLog(@"Pairing Status Update: %tu", status);
switch (status) {
case MTRCommissioningStatusSuccess:
ChipLogProgress(chipTool, "Secure Pairing Success");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
NSLog(@"Version: %@", payload.version);
NSLog(@"VendorID: %@", payload.vendorID);
NSLog(@"ProductID: %@", payload.productID);
NSLog(@"Custom flow: %lu (%@)", payload.commissioningFlow, CustomFlowString(payload.commissioningFlow));
NSLog(@"Custom flow: %tu (%@)", payload.commissioningFlow, CustomFlowString(payload.commissioningFlow));
{
if (payload.discoveryCapabilities == MTRDiscoveryCapabilitiesUnknown) {
NSLog(@"Capabilities: UNKNOWN");
Expand All @@ -100,7 +100,7 @@
[humanFlags appendString:@"ON NETWORK"];
}

NSLog(@"Capabilities: 0x%02lX (%@)", value, humanFlags);
NSLog(@"Capabilities: 0x%02lX (%@)", static_cast<long>(value), humanFlags);
}
}
NSLog(@"Discriminator: %@", payload.discriminator);
Expand Down

0 comments on commit 2374ee9

Please sign in to comment.