Add some debug code

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25970 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-01-17 20:28:12 +00:00
parent 17f36f5be7
commit 583315661b

View file

@ -1757,17 +1757,23 @@ static NSStringEncoding defaultEncoding;
if (_STAT(lpath, &statbuf) != 0)
{
NSDebugMLLog(@"NSFileManager", @"stat failed for '%s' ... %@",
lpath, [NSError _last]);
return nil;
}
#ifdef HAVE_STATVFS
if (statvfs(lpath, &statfsbuf) != 0)
{
NSDebugMLLog(@"NSFileManager", @"statvfs failed for '%s' ... %@",
lpath, [NSError _last]);
return nil;
}
blocksize = statfsbuf.f_frsize;
#else
if (statfs(lpath, &statfsbuf) != 0)
{
NSDebugMLLog(@"NSFileManager", @"statfs failed for '%s' ... %@",
lpath, [NSError _last]);
return nil;
}
blocksize = statfsbuf.f_bsize;
@ -1786,6 +1792,7 @@ static NSStringEncoding defaultEncoding;
return [NSDictionary dictionaryWithObjects: values forKeys: keys count: 5];
#else
NSDebugMLLog(@"NSFileManager", @"no support for filesystem attributes");
return nil;
#endif
#endif /* MINGW */