mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +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
8ec318149b
commit
1a846e2eee
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
|
if ([path getFileSystemRepresentation: thePath
|
||||||
maxLength: sizeof(thePath)-1] == NO)
|
maxLength: sizeof(thePath)-1] == NO)
|
||||||
{
|
{
|
||||||
NSLog(@"Open (%s) attempt failed - bad path", thePath);
|
NSDebugLog(@"Open (%s) attempt failed - bad path", thePath);
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
#if defined(__WIN32__)
|
#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. */
|
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;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -518,7 +518,7 @@ failure:
|
||||||
if ([path getFileSystemRepresentation: theRealPath
|
if ([path getFileSystemRepresentation: theRealPath
|
||||||
maxLength: sizeof(theRealPath)-1] == NO)
|
maxLength: sizeof(theRealPath)-1] == NO)
|
||||||
{
|
{
|
||||||
NSLog(@"Open (%s) attempt failed - bad path", theRealPath);
|
NSDebugLog(@"Open (%s) attempt failed - bad path", theRealPath);
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2280,7 +2280,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
||||||
if ([path getFileSystemRepresentation: thePath
|
if ([path getFileSystemRepresentation: thePath
|
||||||
maxLength: sizeof(thePath)-1] == NO)
|
maxLength: sizeof(thePath)-1] == NO)
|
||||||
{
|
{
|
||||||
NSLog(@"Open (%s) attempt failed - bad path", thePath);
|
NSDebugLog(@"Open (%s) attempt failed - bad path", thePath);
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
fd = open(thePath, O_RDONLY);
|
fd = open(thePath, O_RDONLY);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue