From 60dae250f2ec03f9b41f48a0d51dc2bf06408ae0 Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 27 Aug 2012 14:47:21 -0700 Subject: [PATCH] Use CCLOG to implement js_log --- scripting/javascript/bindings/ScriptingCore.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripting/javascript/bindings/ScriptingCore.cpp b/scripting/javascript/bindings/ScriptingCore.cpp index d15fa4582d..14398a7de9 100644 --- a/scripting/javascript/bindings/ScriptingCore.cpp +++ b/scripting/javascript/bindings/ScriptingCore.cpp @@ -89,11 +89,7 @@ void js_log(const char *format, ...) { int len = vsnprintf(_js_log_buf, 256, format, vl); va_end(vl); if (len) { -#ifdef ANDROID - __android_log_print(ANDROID_LOG_DEBUG, "js_log", _js_log_buf); -#else - fprintf(stderr, "JS: %s\n", _js_log_buf); -#endif + CCLOG("JS: %s\n", _js_log_buf); } }