summaryrefslogtreecommitdiffstats
path: root/src/MCLogger.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-11 22:43:14 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-11 22:43:14 +0100
commit7e6ee7ef8158a037c11405986513aa344ce68f42 (patch)
treef00f9095be3708fafcb68a370042633740ef5f0d /src/MCLogger.h
parentFixed a load of format string errors (diff)
downloadcuberite-7e6ee7ef8158a037c11405986513aa344ce68f42.tar
cuberite-7e6ee7ef8158a037c11405986513aa344ce68f42.tar.gz
cuberite-7e6ee7ef8158a037c11405986513aa344ce68f42.tar.bz2
cuberite-7e6ee7ef8158a037c11405986513aa344ce68f42.tar.lz
cuberite-7e6ee7ef8158a037c11405986513aa344ce68f42.tar.xz
cuberite-7e6ee7ef8158a037c11405986513aa344ce68f42.tar.zst
cuberite-7e6ee7ef8158a037c11405986513aa344ce68f42.zip
Diffstat (limited to '')
-rw-r--r--src/MCLogger.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/MCLogger.h b/src/MCLogger.h
index 348b51242..ba9e4827f 100644
--- a/src/MCLogger.h
+++ b/src/MCLogger.h
@@ -21,10 +21,10 @@ public: // tolua_export
~cMCLogger(); // tolua_export
- void Log(const char* a_Format, va_list a_ArgList);
- void Info(const char* a_Format, va_list a_ArgList);
- void Warn(const char* a_Format, va_list a_ArgList);
- void Error(const char* a_Format, va_list a_ArgList);
+ void Log(const char* a_Format, va_list a_ArgList) FORMATSTRING(2,0);
+ void Info(const char* a_Format, va_list a_ArgList) FORMATSTRING(2,0);
+ void Warn(const char* a_Format, va_list a_ArgList) FORMATSTRING(2,0);
+ void Error(const char* a_Format, va_list a_ArgList) FORMATSTRING(2,0);
void LogSimple(const char* a_Text, int a_LogType = 0 ); // tolua_export
@@ -57,9 +57,9 @@ private:
-extern void LOG(const char* a_Format, ...) FORMATSTRING(1,2);
-extern void LOGINFO(const char* a_Format, ...) FORMATSTRING(1,2);
-extern void LOGWARN(const char* a_Format, ...) FORMATSTRING(1,2);
+extern void LOG(const char* a_Format, ...) FORMATSTRING(1,2);
+extern void LOGINFO(const char* a_Format, ...) FORMATSTRING(1,2);
+extern void LOGWARN(const char* a_Format, ...) FORMATSTRING(1,2);
extern void LOGERROR(const char* a_Format, ...) FORMATSTRING(1,2);