@@ -86,7 +86,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
86
86
87
87
@autoreleasepool
88
88
{
89
- os_log_info (logger, " Preview with options=%{public}@ UTI=%{public}@ for %{public}@ " , options, contentTypeUTI, [(__bridge NSURL *)url path ]);
89
+ os_log_info (logger, " Preview " LOGPRIVATE " with options=%{public}@ UTI=%{public}@" , [(__bridge NSURL *)url path ], options, contentTypeUTI );
90
90
Snapshotter *snapshotter = nil ;
91
91
92
92
// Prefer any cover art (if present) over a playable preview or static snapshot in Finder and Spotlight views
@@ -100,7 +100,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
100
100
if (cover)
101
101
{
102
102
CGSize coversize = CGSizeMake (CGImageGetWidth (cover), CGImageGetHeight (cover));
103
- os_log_info (logger, " Supplying %d x%d cover art for %{public}@ " , (int ) coversize.width , (int ) coversize.height , [(__bridge NSURL *)url path ]);
103
+ os_log_info (logger, " Supplying %d x%d cover art for " LOGPRIVATE , (int ) coversize.width , (int ) coversize.height , [(__bridge NSURL *)url path ]);
104
104
CGContextRef context = QLPreviewRequestCreateContext (preview, coversize, true , nil );
105
105
CGContextDrawImage (context, CGRectMake (0 , 0 , coversize.width , coversize.height ), cover);
106
106
QLPreviewRequestFlushContext (preview, context);
@@ -116,8 +116,8 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
116
116
if (QLPreviewRequestIsCancelled (preview)) return kQLReturnNoError ;
117
117
CFBundleRef myBundle = QLPreviewRequestGetGeneratorBundle (preview);
118
118
NSUserDefaults *defaults = [[NSUserDefaults alloc ] initWithSuiteName: kSettingsSuiteName ];
119
- os_log_debug (logger, " QLvideo preview defaults=%@" , defaults);
120
- os_log_debug (logger, " QLvideo preview SnapshoCount =%ld " , (long )[defaults integerForKey: kSettingsSnapshotCount ]);
119
+ os_log_debug (logger, " QLvideo preview defaults=%{public} @" , defaults);
120
+ os_log_debug (logger, " QLvideo preview SnapshotCount =%ld " , (long )[defaults integerForKey: kSettingsSnapshotCount ]);
121
121
122
122
if (![defaults boolForKey: kSettingsSnapshotAlways ])
123
123
@autoreleasepool // Reduce peak footprint
@@ -126,7 +126,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
126
126
127
127
if (player.playable )
128
128
{
129
- os_log_info (logger, " Handing off %{public}@ to AVFoundation" , [(__bridge NSURL *)url path ]);
129
+ os_log_info (logger, " Handing off " LOGPRIVATE " to AVFoundation" , [(__bridge NSURL *)url path ]);
130
130
NSString *title = [player title ];
131
131
if (!title)
132
132
title = [(__bridge NSURL *)url lastPathComponent ];
@@ -165,7 +165,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
165
165
if (cover)
166
166
{
167
167
CGSize coversize = CGSizeMake (CGImageGetWidth (cover), CGImageGetHeight (cover));
168
- os_log_info (logger, " Supplying %d x%d cover art for %{public}@ " , (int ) coversize.width , (int ) coversize.height , [(__bridge NSURL *)url path ]);
168
+ os_log_info (logger, " Supplying %d x%d cover art for " LOGPRIVATE , (int ) coversize.width , (int ) coversize.height , [(__bridge NSURL *)url path ]);
169
169
NSDictionary *properties = @{(NSString *) kQLPreviewPropertyDisplayNameKey : theTitle};
170
170
CGContextRef context = QLPreviewRequestCreateContext (preview, coversize, true , (__bridge CFDictionaryRef ) properties);
171
171
CGContextDrawImage (context, CGRectMake (0 , 0 , coversize.width , coversize.height ), cover);
@@ -247,7 +247,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
247
247
(__bridge NSString *) kQLPreviewPropertyPageElementXPathKey : @" /html/body/div" ,
248
248
(NSString *) kQLPreviewPropertyPDFStyleKey : @(kQLPreviewPDFPagesWithThumbnailsOnLeftStyle ),
249
249
(NSString *) kQLPreviewPropertyAttachmentsKey : attachments};
250
- os_log_info (logger, " Supplying %lu %d x%d images for %{public}@ " , [properties[(NSString *) kQLPreviewPropertyAttachmentsKey ] count ], (int ) scaled.width , (int ) scaled.height , [(__bridge NSURL *)url path ]);
250
+ os_log_info (logger, " Supplying %lu %d x%d images for " LOGPRIVATE , [properties[(NSString *) kQLPreviewPropertyAttachmentsKey ] count ], (int ) scaled.width , (int ) scaled.height , [(__bridge NSURL *)url path ]);
251
251
QLPreviewRequestSetDataRepresentation (preview, (__bridge CFDataRef ) [html dataUsingEncoding: NSUTF8StringEncoding], kUTTypeHTML ,
252
252
(__bridge CFDictionaryRef ) properties);
253
253
return kQLReturnNoError ; // early exit
@@ -275,7 +275,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
275
275
else
276
276
size = CGSizeMake (round (original.width * kMaxHeight / original.height ), kMaxHeight );
277
277
# endif
278
- os_log_info (logger, " Supplying %d x%d image for %{public}@ " , (int ) size.width , (int ) size.height , [(__bridge NSURL *)url path ]);
278
+ os_log_info (logger, " Supplying %d x%d image for " LOGPRIVATE , (int ) size.width , (int ) size.height , [(__bridge NSURL *)url path ]);
279
279
NSDictionary *properties = @{(NSString *) kQLPreviewPropertyDisplayNameKey : theTitle};
280
280
CGContextRef context = QLPreviewRequestCreateContext (preview, size, true , (__bridge CFDictionaryRef ) properties);
281
281
CGContextDrawImage (context, CGRectMake (0 , 0 , size.width , size.height ), thePreview);
@@ -285,7 +285,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
285
285
}
286
286
else
287
287
{
288
- os_log_error (logger, " Can't supply anything for %@ " , [(__bridge NSURL *)url path ]);
288
+ os_log_error (logger, " Can't supply anything for " LOGPRIVATE , [(__bridge NSURL *)url path ]);
289
289
}
290
290
}
291
291
return kQLReturnNoError ;
0 commit comments