Revised NSDebugLog() stuff

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2899 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-08-04 10:45:43 +00:00
parent 3e828bffdb
commit b45c31a805
7 changed files with 60 additions and 18 deletions

View file

@ -29,6 +29,7 @@
#include <Foundation/NSException.h>
#include <Foundation/NSString.h>
#include <Foundation/NSArray.h>
#include <Foundation/NSDebug.h>
#include <Foundation/NSDictionary.h>
#include <Foundation/NSProcessInfo.h>
#include <Foundation/NSObjCRuntime.h>
@ -255,7 +256,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
if ([s isEqual: gnustep_target_cpu])
path = [path stringByDeletingLastPathComponent];
NSDebugLog(@"(NSBundle): Found main in %@\n", path);
NSDebugLog(@"NSBundle", @"(NSBundle): Found main in %@\n", path);
/* We do alloc and init separately so initWithPath: knows
we are the _mainBundle */
_mainBundle = [NSBundle alloc];
@ -338,7 +339,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
if (stat([path cString], &statbuf) != 0)
{
NSDebugLog(@"Could not access path %s for bundle", [path cString]);
NSDebugLog(@"NSBundle", @"Could not access path %s for bundle", [path cString]);
//[self dealloc];
//return nil;
}