From 534e22131667759be0cc610d52438a3a79dfe65a Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 25 Mar 2012 13:29:07 +0000 Subject: Fixed the Log altogether (doesn't use NULL-to-va_list assignment, compiles for RaspberryPi) git-svn-id: http://mc-server.googlecode.com/svn/trunk@432 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cMCLogger.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/cMCLogger.cpp') diff --git a/source/cMCLogger.cpp b/source/cMCLogger.cpp index e966e7788..0869daa53 100644 --- a/source/cMCLogger.cpp +++ b/source/cMCLogger.cpp @@ -59,19 +59,19 @@ void cMCLogger::LogSimple(const char* a_Text, int a_LogType /* = 0 */ ) switch( a_LogType ) { case 0: - Log(a_Text, 0); + LOG("%s", a_Text); break; case 1: - Info(a_Text, 0); + LOGINFO("%s", a_Text); break; case 2: - Warn(a_Text, 0); + LOGWARN("%s", a_Text); break; case 3: - Error(a_Text, 0); + LOGERROR("%s", a_Text); break; default: - Log(a_Text, 0); + LOG("(#%d#: %s", a_LogType, a_Text); break; } } -- cgit v1.2.3