diff options
author | Sven Weidauer <sven@5sw.de> | 2017-12-23 12:28:17 +0100 |
---|---|---|
committer | Sven Weidauer <sven@5sw.de> | 2017-12-23 12:28:17 +0100 |
commit | afa0de1ce3f5de4ad732c3ed98eb4ff8dcf9ac92 (patch) | |
tree | 57e28e3ace6c07b8b7bb99a9c449c3179f18ad44 /frontends/cocoa/fetch.m | |
parent | cb452810b98273f1bf3275321386c8393d5c5134 (diff) | |
download | netsurf-afa0de1ce3f5de4ad732c3ed98eb4ff8dcf9ac92.tar.gz netsurf-afa0de1ce3f5de4ad732c3ed98eb4ff8dcf9ac92.tar.bz2 |
Change LOG calls to NSLOG
Diffstat (limited to 'frontends/cocoa/fetch.m')
-rw-r--r-- | frontends/cocoa/fetch.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/cocoa/fetch.m b/frontends/cocoa/fetch.m index 74ba9afa3..1e3e5af13 100644 --- a/frontends/cocoa/fetch.m +++ b/frontends/cocoa/fetch.m @@ -50,13 +50,13 @@ static const char *fetch_filetype(const char *unix_path) uti = [[NSWorkspace sharedWorkspace] typeOfFile:[NSString stringWithUTF8String:unix_path] error:&utiError]; if (nil != uti) { - LOG("Looking for mimetype from uti \"%s\"", [uti UTF8String]); + NSLOG(netsurf, INFO, "Looking for mimetype from uti \"%s\"", [uti UTF8String]); mimeType = (__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)uti, kUTTagClassMIMEType); } else { NSAlert *utiAlert = [NSAlert alertWithError:utiError]; [utiAlert runModal]; // Ignore return value. - LOG("uti call failed"); + NSLOG(netsurf, INFO, "uti call failed"); strncpy(cocoafiletype, "text/html", sizeof(cocoafiletype)); return cocoafiletype; @@ -67,13 +67,13 @@ static const char *fetch_filetype(const char *unix_path) } else { const char *extension; - LOG("mimetype from uti failed"); + NSLOG(netsurf, INFO, "mimetype from uti failed"); extension = [(__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)uti, kUTTagClassFilenameExtension) UTF8String]; if (extension == NULL) { /* give up and go with default */ - LOG("No extension going with default type"); + NSLOG(netsurf, INFO, "No extension going with default type"); strncpy(cocoafiletype, "text/html", sizeof(cocoafiletype)); } else { int eidx = 0; /* index of extension entry */ @@ -88,7 +88,7 @@ static const char *fetch_filetype(const char *unix_path) } } - LOG("\tMIME type for '%s' is '%s'", unix_path, cocoafiletype); + NSLOG(netsurf, INFO, "\tMIME type for '%s' is '%s'", unix_path, cocoafiletype); return cocoafiletype; } |