diff --git a/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m b/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m index dd5ac41faea1..b0857ce5b6fd 100644 --- a/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m +++ b/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m @@ -64,7 +64,7 @@ static View *theView; [self.window addGestureRecognizer: tapRecognizer]; [self.window addGestureRecognizer: panRecognizer]; - NSLog(@"statusBarOrientation: %d", [[UIApplication sharedApplication] statusBarOrientation]); + NSLog(@"statusBarOrientation: %ld", (long) [[UIApplication sharedApplication] statusBarOrientation]); if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) lo_set_view_size(applicationFrame.size.height, applicationFrame.size.width); @@ -94,7 +94,7 @@ static View *theView; - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text { - NSLog(@"textView: %@ shouldChangeTextInRange:[%u,%u] replacementText:%@", textView, range.location, range.length, text); + NSLog(@"textView: %@ shouldChangeTextInRange:[%lu,%lu] replacementText:%@", textView, (unsigned long) range.location, (unsigned long) range.length, text); assert(textView == theView->textView); for (NSUInteger i = 0; i < [text length]; i++) @@ -137,7 +137,7 @@ static View *theView; NSLog(@"New applicationFrame: %dx%d@(%d,%d)", (int) applicationFrame.size.width, (int) applicationFrame.size.height, (int) applicationFrame.origin.x, (int) applicationFrame.origin.y); - NSLog(@"statusBarOrientation: %d", [[UIApplication sharedApplication] statusBarOrientation]); + NSLog(@"statusBarOrientation: %ld", (long) [[UIApplication sharedApplication] statusBarOrientation]); if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) lo_set_view_size(applicationFrame.size.height, applicationFrame.size.width); diff --git a/ios/experimental/LibreOffice/LibreOffice/View.m b/ios/experimental/LibreOffice/LibreOffice/View.m index ed1abc695258..8c490cb88cec 100644 --- a/ios/experimental/LibreOffice/LibreOffice/View.m +++ b/ios/experimental/LibreOffice/LibreOffice/View.m @@ -15,7 +15,7 @@ - (void)drawRect:(CGRect)rect { NSLog(@"drawRect: %dx%d@(%d,%d)", (int) rect.size.width, (int) rect.size.height, (int) rect.origin.x, (int) rect.origin.y); - NSLog(@"statusBarOrientation: %d", [[UIApplication sharedApplication] statusBarOrientation]); + NSLog(@"statusBarOrientation: %ld", (long)[[UIApplication sharedApplication] statusBarOrientation]); // NSDate *startDate = [NSDate date]; diff --git a/ios/experimental/LibreOffice/LibreOffice/ViewController.m b/ios/experimental/LibreOffice/LibreOffice/ViewController.m index a0c4985c2c77..a7977af92d5a 100644 --- a/ios/experimental/LibreOffice/LibreOffice/ViewController.m +++ b/ios/experimental/LibreOffice/LibreOffice/ViewController.m @@ -29,7 +29,7 @@ { (void) fromInterfaceOrientation; - NSLog(@"didRotateFromInterfaceOrientation: statusBarOrientation: %d interfaceOrientation: %d", [[UIApplication sharedApplication] statusBarOrientation], [self interfaceOrientation]); + NSLog(@"didRotateFromInterfaceOrientation: statusBarOrientation: %ld interfaceOrientation: %ld", (long) [[UIApplication sharedApplication] statusBarOrientation], (long) [self interfaceOrientation]); } @end