mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
add some logging info
This commit is contained in:
parent
286a127501
commit
48e599ae06
1 changed files with 6 additions and 4 deletions
|
@ -1667,22 +1667,24 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
if (!class_isMetaClass(aClass))
|
||||
{
|
||||
NSString *path;
|
||||
NSString *exep;
|
||||
|
||||
/* If the class is defined in a file other than the executable
|
||||
* it must be in a library or framework/bundle.
|
||||
*/
|
||||
path = GSPrivateSymbolPath(aClass);
|
||||
if ([path isEqual: GSPrivateExecutablePath()] == NO)
|
||||
exep = GSPrivateExecutablePath();
|
||||
if ([path isEqual: exep] == NO)
|
||||
{
|
||||
NSString *libraryName = path;
|
||||
NSString *ver = [self _versionForLibrary: &libraryName];
|
||||
|
||||
if (nil == ver)
|
||||
{
|
||||
NSLog(@"Warning: [%@+%@] unable to determine"
|
||||
@" version of library '%@' containing '%@'",
|
||||
NSLog(@"Warning: [%@+%@] unable to determine version"
|
||||
@" of library '%@' containing '%@' for executable '%@'",
|
||||
NSStringFromClass(self), NSStringFromSelector(_cmd),
|
||||
path, NSStringFromClass(aClass));
|
||||
path, NSStringFromClass(aClass), exep);
|
||||
}
|
||||
/* Get the library bundle ... if there wasn't one then we
|
||||
* will check to see if it's in a newly loaded framework
|
||||
|
|
Loading…
Reference in a new issue