Skip to content

Commit 18aebaa

Browse files
committed
Fixes some format strings
1 parent 64d769d commit 18aebaa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

TextSecureiOS Tests/CryptographyTests.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ -(void) testLocalDecryption {
3939
NSString* originalMessage = @"Hawaii is awesome";
4040
NSString* signalingKeyString = @"VJuRzZcwuY/6VjGw+QSPy5ROzHo8xE36mKwHNvkfyZ+mSPaDlSDcenUqavIX1Vwn\nRRIdrg==";
4141
NSData* signalingKey = [NSData dataFromBase64String:signalingKeyString];
42-
XCTAssertTrue([signalingKey length]==52, @"signaling key is not 52 bytes but %ull",(unsigned long long)[signalingKey length]);
42+
XCTAssertTrue([signalingKey length]==52, @"signaling key is not 52 bytes but %llu", (unsigned long long)[signalingKey length]);
4343
NSData* signalingKeyAESKeyMaterial = [signalingKey subdataWithRange:NSMakeRange(0, 32)];
4444
NSData* signalingKeyHMACKeyMaterial = [signalingKey subdataWithRange:NSMakeRange(32, 20)];
4545
NSData* iv = [Cryptography generateRandomBytes:16];

TextSecureiOS/Networking/TSAttachmentManager.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ +(void) uploadAttachment:(TSMessage*) message {
4646
break;
4747
}
4848
} failure:^(AFHTTPRequestOperation *uploadOperation, NSError *uploadError) {
49-
DLog(@"failure with uploading file, %d, %@",uploadOperation.response.statusCode,uploadOperation.response.description);
49+
DLog(@"failure with uploading file, %ld, %@",(long)uploadOperation.response.statusCode,uploadOperation.response.description);
5050

5151

5252
}];
@@ -61,7 +61,7 @@ +(void) uploadAttachment:(TSMessage*) message {
6161
}
6262
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
6363
#warning Add error handling if not able to send the token
64-
DLog(@"failure allocated upload location %d, %@",operation.response.statusCode,operation.response.description);
64+
DLog(@"failure allocated upload location %ld, %@",(long)operation.response.statusCode,operation.response.description);
6565
}];
6666
}
6767
}
@@ -102,7 +102,7 @@ +(void) downloadAttachment:(TSMessage*) message {
102102
break;
103103
}
104104
} failure:^(AFHTTPRequestOperation *downloadOperation, NSError *downloadError) {
105-
DLog(@"failure with uploading file, %d, %@",downloadOperation.response.statusCode,downloadOperation.response.description);
105+
DLog(@"failure with uploading file, %ld, %@",(long)downloadOperation.response.statusCode,downloadOperation.response.description);
106106

107107

108108
}];
@@ -114,7 +114,7 @@ +(void) downloadAttachment:(TSMessage*) message {
114114
}
115115
}failure:^(AFHTTPRequestOperation *operation, NSError *error) {
116116

117-
DLog(@"failure attachment %d, %@",operation.response.statusCode,operation.response.description);
117+
DLog(@"failure attachment %ld, %@",(long)operation.response.statusCode,operation.response.description);
118118

119119

120120
}];

0 commit comments

Comments
 (0)