From 44659b1a8f0e2117f59650141a47f3368c2e5334 Mon Sep 17 00:00:00 2001 From: Blake Kaplan Date: Thu, 28 Jun 2012 16:14:11 +0200 Subject: [PATCH] Bug 769265 - Fix these calls. r=bent --- content/base/src/nsFrameMessageManager.cpp | 2 +- dom/workers/WorkerPrivate.cpp | 2 +- dom/workers/WorkerScope.cpp | 2 +- js/xpconnect/loader/mozJSComponentLoader.cpp | 2 +- js/xpconnect/shell/xpcshell.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content/base/src/nsFrameMessageManager.cpp b/content/base/src/nsFrameMessageManager.cpp index bddaf537f028..d34199b8ebfc 100644 --- a/content/base/src/nsFrameMessageManager.cpp +++ b/content/base/src/nsFrameMessageManager.cpp @@ -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); diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp index 8ebb1a86e7ea..41585321c4b3 100644 --- a/dom/workers/WorkerPrivate.cpp +++ b/dom/workers/WorkerPrivate.cpp @@ -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); diff --git a/dom/workers/WorkerScope.cpp b/dom/workers/WorkerScope.cpp index de1f4e4238dc..5c35bda9d96e 100644 --- a/dom/workers/WorkerScope.cpp +++ b/dom/workers/WorkerScope.cpp @@ -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); diff --git a/js/xpconnect/loader/mozJSComponentLoader.cpp b/js/xpconnect/loader/mozJSComponentLoader.cpp index 86ec5296c44a..8ff2f0d6fa2d 100644 --- a/js/xpconnect/loader/mozJSComponentLoader.cpp +++ b/js/xpconnect/loader/mozJSComponentLoader.cpp @@ -176,7 +176,7 @@ Dump(JSContext *cx, unsigned argc, jsval *vp) NS_ConvertUTF16toUTF8 utf8str(reinterpret_cast(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); diff --git a/js/xpconnect/shell/xpcshell.cpp b/js/xpconnect/shell/xpcshell.cpp index 9757f415f7f9..b0873c5b2823 100644 --- a/js/xpconnect/shell/xpcshell.cpp +++ b/js/xpconnect/shell/xpcshell.cpp @@ -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);