mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Tidied logging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5316 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7a7a91d766
commit
1b69260b1e
1 changed files with 4 additions and 4 deletions
|
@ -122,7 +122,7 @@ readContentsOfFile(NSString* path, void** buf, unsigned* len, NSZone* zone)
|
|||
if ([path getFileSystemRepresentation: thePath
|
||||
maxLength: sizeof(thePath)-1] == NO)
|
||||
{
|
||||
NSLog(@"Open (%s) attempt failed - bad path", thePath);
|
||||
NSDebugLog(@"Open (%s) attempt failed - bad path", thePath);
|
||||
return NO;
|
||||
}
|
||||
#if defined(__WIN32__)
|
||||
|
@ -133,7 +133,7 @@ readContentsOfFile(NSString* path, void** buf, unsigned* len, NSZone* zone)
|
|||
|
||||
if (theFile == NULL) /* We failed to open the file. */
|
||||
{
|
||||
NSLog(@"Open (%s) attempt failed - %s", thePath, strerror(errno));
|
||||
NSDebugLog(@"Open (%s) attempt failed - %s", thePath, strerror(errno));
|
||||
goto failure;
|
||||
}
|
||||
|
||||
|
@ -518,7 +518,7 @@ failure:
|
|||
if ([path getFileSystemRepresentation: theRealPath
|
||||
maxLength: sizeof(theRealPath)-1] == NO)
|
||||
{
|
||||
NSLog(@"Open (%s) attempt failed - bad path", theRealPath);
|
||||
NSDebugLog(@"Open (%s) attempt failed - bad path", theRealPath);
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
@ -2280,7 +2280,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
|||
if ([path getFileSystemRepresentation: thePath
|
||||
maxLength: sizeof(thePath)-1] == NO)
|
||||
{
|
||||
NSLog(@"Open (%s) attempt failed - bad path", thePath);
|
||||
NSDebugLog(@"Open (%s) attempt failed - bad path", thePath);
|
||||
return NO;
|
||||
}
|
||||
fd = open(thePath, O_RDONLY);
|
||||
|
|
Loading…
Reference in a new issue