dd a little diagnostic logging

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27441 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-12-28 10:58:57 +00:00
parent 3fecc787d4
commit c182e9df92
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-12-28 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSApplication.m: Add tiny bit of diagnostic logging for
locating backend bundle.
2008-12-26 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSAttributedString.m (-initWithData:...,

View file

@ -224,7 +224,9 @@ gnustep_backend_bundle(NSString *bundleName)
int version = GNUSTEP_GUI_MAJOR_VERSION * 100 + GNUSTEP_GUI_MINOR_VERSION;
if (bundleName == nil)
bundleName = @"libgnustep-back";
{
bundleName = @"libgnustep-back";
}
else
{
if ([bundleName hasPrefix: @"libgnustep-"] == NO)
@ -239,7 +241,8 @@ gnustep_backend_bundle(NSString *bundleName)
path = gnustep_backend_path(@"Bundles", bundleWithVersion);
if (path == nil)
{
NSLog(@"Did not find correct version of backend, falling back to std.");
NSLog(@"Did not find correct version of backend (%@), "
@"falling back to std (%@).", bundleWithVersion, bundleName);
path = gnustep_backend_path(@"Bundles", bundleName);
}
return path;