diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index f739ba6e83f62d..d8fc52b1a2fc6e 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -625,14 +625,14 @@ - (NSString *)description NSString * reportAge; if (mostRecentReportTime) { - reportAge = [NSString stringWithFormat:@" (%.0fs ago)", -[mostRecentReportTime timeIntervalSinceNow]]; + reportAge = [NSString stringWithFormat:@" (%.0lfs ago)", -[mostRecentReportTime timeIntervalSinceNow]]; } else { reportAge = @""; } NSString * subscriptionFailureAge; if (lastSubscriptionFailureTime) { - subscriptionFailureAge = [NSString stringWithFormat:@" (%.0fs ago)", -[lastSubscriptionFailureTime timeIntervalSinceNow]]; + subscriptionFailureAge = [NSString stringWithFormat:@" (%.0lfs ago)", -[lastSubscriptionFailureTime timeIntervalSinceNow]]; } else { subscriptionFailureAge = @""; } diff --git a/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm b/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm index 57d2c53c1f5eba..e22b0b8edff243 100644 --- a/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm +++ b/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm @@ -538,14 +538,14 @@ - (NSString *)description NSString * reportAge; if (mostRecentReportTime) { - reportAge = [NSString stringWithFormat:@" (%.0fs ago)", -[mostRecentReportTime timeIntervalSinceNow]]; + reportAge = [NSString stringWithFormat:@" (%.0lfs ago)", -[mostRecentReportTime timeIntervalSinceNow]]; } else { reportAge = @""; } NSString * subscriptionFailureAge; if (lastSubscriptionFailureTime) { - subscriptionFailureAge = [NSString stringWithFormat:@" (%.0fs ago)", -[lastSubscriptionFailureTime timeIntervalSinceNow]]; + subscriptionFailureAge = [NSString stringWithFormat:@" (%.0lfs ago)", -[lastSubscriptionFailureTime timeIntervalSinceNow]]; } else { subscriptionFailureAge = @""; }