Bug 769265 - Fix these calls. r=bent

This commit is contained in:
Blake Kaplan 2012-06-28 16:14:11 +02:00
parent 977c0791bb
commit 71e3941c1e
5 changed files with 5 additions and 5 deletions

View File

@ -257,7 +257,7 @@ NS_IMETHODIMP
nsFrameMessageManager::Dump(const nsAString& aStr)
{
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", NS_ConvertUTF16toUTF8(aStr).get());
__android_log_print(ANDROID_LOG_INFO, "Gecko", "%s", NS_ConvertUTF16toUTF8(aStr).get());
#endif
fputs(NS_ConvertUTF16toUTF8(aStr).get(), stdout);
fflush(stdout);

View File

@ -1233,7 +1233,7 @@ public:
if (!logged) {
NS_ConvertUTF16toUTF8 msg(aMessage);
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", msg.get());
__android_log_print(ANDROID_LOG_INFO, "Gecko", "%s", msg.get());
#endif
fputs(msg.get(), stderr);
fflush(stderr);

View File

@ -542,7 +542,7 @@ private:
}
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", buffer.ptr());
__android_log_print(ANDROID_LOG_INFO, "Gecko", "%s", buffer.ptr());
#endif
fputs(buffer.ptr(), stdout);
fflush(stdout);

View File

@ -176,7 +176,7 @@ Dump(JSContext *cx, unsigned argc, jsval *vp)
NS_ConvertUTF16toUTF8 utf8str(reinterpret_cast<const PRUnichar*>(chars));
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", utf8str.get());
__android_log_print(ANDROID_LOG_INFO, "Gecko", "%s", utf8str.get());
#endif
fputs(utf8str.get(), stdout);
fflush(stdout);

View File

@ -423,7 +423,7 @@ Dump(JSContext *cx, unsigned argc, jsval *vp)
return false;
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", bytes.ptr());
__android_log_print(ANDROID_LOG_INFO, "Gecko", "%s", bytes.ptr());
#endif
fputs(bytes.ptr(), gOutFile);
fflush(gOutFile);