Bug 652050 diagnostic 2 followup: use printf_stderr since android doesn't have printf. rs=dougt

This commit is contained in:
Daniel Holbert 2011-04-22 17:10:50 -07:00
Родитель a0e63cdc53
Коммит 4510b90fb9
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -223,11 +223,16 @@ nsSVGFeatures::PassesConditionalProcessingTests(nsIContent *aContent,
// 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();
}