Fix various incorrect log statements

This commit is contained in:
Frederik Seiffert 2021-08-10 11:27:47 +02:00 committed by Frederik Seiffert
parent a745addb32
commit 2d45396de0
2 changed files with 8 additions and 6 deletions

View file

@ -3798,7 +3798,8 @@ static NSSet *fileKeys = nil;
dwErrorCode = GetLastError(); dwErrorCode = GetLastError();
if (dwErrorCode == ERROR_NONE_MAPPED) if (dwErrorCode == ERROR_NONE_MAPPED)
NSDebugMLog(@"Error %d in LookupAccountSid for '%S'", _path); NSDebugMLog(@"Error %d in LookupAccountSid for '%S'",
dwErrorCode, _path);
else else
NSDebugMLog(@"Error %d getting security info for '%S'", NSDebugMLog(@"Error %d getting security info for '%S'",
dwErrorCode, _path); dwErrorCode, _path);
@ -3963,7 +3964,8 @@ static NSSet *fileKeys = nil;
dwErrorCode = GetLastError(); dwErrorCode = GetLastError();
if (dwErrorCode == ERROR_NONE_MAPPED) if (dwErrorCode == ERROR_NONE_MAPPED)
NSDebugMLog(@"Error %d in LookupAccountSid for '%S'", _path); NSDebugMLog(@"Error %d in LookupAccountSid for '%S'",
dwErrorCode, _path);
else else
NSDebugMLog(@"Error %d getting security info for '%S'", NSDebugMLog(@"Error %d getting security info for '%S'",
dwErrorCode, _path); dwErrorCode, _path);

View file

@ -275,12 +275,12 @@ static Class messagePortClass = 0;
if (d == nil) if (d == nil)
{ {
NSDebugMLLog(@"NSMessagePort", NSDebugMLLog(@"NSMessagePort",
@"No delegate to handle incoming message", 0); @"No delegate to handle incoming message");
return; return;
} }
if ([d respondsToSelector: @selector(handlePortMessage:)] == NO) if ([d respondsToSelector: @selector(handlePortMessage:)] == NO)
{ {
NSDebugMLLog(@"NSMessagePort", @"delegate doesn't handle messages", 0); NSDebugMLLog(@"NSMessagePort", @"delegate doesn't handle messages");
return; return;
} }
NSDebugMLLog(@"NSMessagePort", @"%@ asking %@ to handle msg", self, d); NSDebugMLLog(@"NSMessagePort", @"%@ asking %@ to handle msg", self, d);
@ -612,7 +612,7 @@ static Class messagePortClass = 0;
} }
if (rType != GSP_HEAD && rItems == nil) if (rType != GSP_HEAD && rItems == nil)
{ {
NSLog(@"%@ - initial part of message had bad type"); NSLog(@"%@ - initial part of message had bad type", self);
break; break;
} }
@ -873,7 +873,7 @@ again:
/* This is probably an end of file /* This is probably an end of file
* eg. when the process at the other end has terminated. * eg. when the process at the other end has terminated.
*/ */
NSDebugMLog(@"NSMessagePort", NSDebugMLLog(@"NSMessagePort",
@"unable to write to mailslot '%@' - %@", @"unable to write to mailslot '%@' - %@",
this->name, [NSError _last]); this->name, [NSError _last]);
[self invalidate]; [self invalidate];