From cc13cbbe3d3a95735ca037f7382ffbcc90e7a80d Mon Sep 17 00:00:00 2001 From: faketruth Date: Sat, 18 Aug 2012 23:42:27 +0000 Subject: Android: Showing last MCServer related logcat message git-svn-id: http://mc-server.googlecode.com/svn/trunk@753 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cLog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/cLog.cpp b/source/cLog.cpp index 57ad9b418..da95ee8cc 100644 --- a/source/cLog.cpp +++ b/source/cLog.cpp @@ -130,7 +130,8 @@ void cLog::Log(const char * a_Format, va_list argList) // Print to console: #if defined(ANDROID_NDK) - __android_log_vprint(ANDROID_LOG_ERROR,"MCServer", a_Format, argList); + //__android_log_vprint(ANDROID_LOG_ERROR,"MCServer", a_Format, argList); + __android_log_print(ANDROID_LOG_ERROR, "MCServer", "%s", Line.c_str() ); //CallJavaFunction_Void_String(g_JavaThread, "AddToLog", Line ); #else printf("%s", Line.c_str()); -- cgit v1.2.3