From 560cdf7f68b00a630dac6b1251f58e2fd62981b5 Mon Sep 17 00:00:00 2001 From: "pinkerton%aol.net" Date: Tue, 28 Sep 2004 20:53:30 +0000 Subject: [PATCH] turn off printfs in opt builds (bug 252536, r=pink, sr=sfraser) git-svn-id: svn://10.0.0.236/trunk@162893 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/plugin/oji/MRJCarbon/plugin/Source/MRJPlugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/plugin/oji/MRJCarbon/plugin/Source/MRJPlugin.cpp b/mozilla/plugin/oji/MRJCarbon/plugin/Source/MRJPlugin.cpp index ada2cd872bf..7430c1916de 100644 --- a/mozilla/plugin/oji/MRJCarbon/plugin/Source/MRJPlugin.cpp +++ b/mozilla/plugin/oji/MRJCarbon/plugin/Source/MRJPlugin.cpp @@ -215,16 +215,22 @@ CF_EXPORT Boolean CFURLGetFSRef(CFURLRef url, FSRef *fsRef); static CFBundleRef getPluginBundle() { +#ifdef DEBUG printf("### MRJPlugin: getPluginBundle() here. ###\n"); +#endif CFBundleRef bundle = CFBundleGetBundleWithIdentifier(CFSTR("com.netscape.MRJPlugin")); if (bundle) { +#ifdef DEBUG printf("### MRJPlugin: CFBundleGetBundleWithIdentifier() succeeded. ###\n"); +#endif // initialize thePluginSpec for later use. open our resource fork as well? CFURLRef url = CFBundleCopyExecutableURL(bundle); if (url) { FSRef ref; if (CFURLGetFSRef(url, &ref)) { +#ifdef DEBUG printf("### MRJPlugin: CFURLGetFSRef() succeeded. ###\n"); +#endif FSGetCatalogInfo(&ref, kFSCatInfoNone, NULL, NULL, &thePluginSpec, NULL); // Open plugin's resource fork for read-only access. is this really necessary?