Bug 652050 diagnostic 2 followup: use printf_stderr since android doesn't have printf. rs=dougt
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 22 Apr 2011 17:10:50 -0700
changeset 68575 92d1f348696417900938a73855db2ecaa4fdf3f3
parent 68574 98ef084ded4780580c3f31f7689349c934fffb97
child 68576 384ce8196f5ad9464c8cb4d8a755e683755ae9c9
push id99
push usereakhgari@mozilla.com
push dateTue, 24 May 2011 18:03:59 +0000
treeherdermozilla-aurora@26d6981b3d6a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdougt
bugs652050
milestone6.0a1
Bug 652050 diagnostic 2 followup: use printf_stderr since android doesn't have printf. rs=dougt
content/svg/content/src/nsSVGFeatures.cpp
--- a/content/svg/content/src/nsSVGFeatures.cpp
+++ b/content/svg/content/src/nsSVGFeatures.cpp
@@ -218,20 +218,25 @@ nsSVGFeatures::PassesConditionalProcessi
   if (aContent->GetAttr(kNameSpaceID_None, nsGkAtoms::systemLanguage,
                         value)) {
 
     const nsAutoString acceptLangs(aAcceptLangs ? *aAcceptLangs :
       nsContentUtils::GetLocalizedStringPref("intl.accept_languages"));
 
     // Get our language preferences
     if (!acceptLangs.IsEmpty()) {
-      printf("Bug 652050 diagnostic: intl.accept_languages is nonempty.\n");
+      // XXXdholbert Temporary diagnostic to verify a theory in Bug 652050
+#ifdef ANDROID
+      printf_stderr("Bug 652050 diagnostic: intl.accept_languages is nonempty.\n");
+#endif
       return MatchesLanguagePreferences(value, acceptLangs);
     } else {
       // For now, evaluate to true.
-      printf("Bug 652050 diagnostic: intl.accept_languages is EMPTY!\n");
+#ifdef ANDROID
+      printf_stderr("Bug 652050 diagnostic: intl.accept_languages is EMPTY!\n");
+#endif
       NS_WARNING("no default language specified for systemLanguage conditional test");
       return !value.IsEmpty();
     }
   }
 
   return PR_TRUE;
 }