diff options
author | Mattes D <github@xoft.cz> | 2015-01-24 09:27:55 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-24 09:27:55 +0100 |
commit | f91de20ca14725a41ea082b61a98477427c78528 (patch) | |
tree | 7925214f6faec943d0bdffc3c2706eed8fe744e9 /src/Globals.h | |
parent | Merge pull request #1712 from UltraCoderRU/fix_coverity (diff) | |
parent | cNetwork: Added self pointers to keep objects alive for callbacks. (diff) | |
download | cuberite-f91de20ca14725a41ea082b61a98477427c78528.tar cuberite-f91de20ca14725a41ea082b61a98477427c78528.tar.gz cuberite-f91de20ca14725a41ea082b61a98477427c78528.tar.bz2 cuberite-f91de20ca14725a41ea082b61a98477427c78528.tar.lz cuberite-f91de20ca14725a41ea082b61a98477427c78528.tar.xz cuberite-f91de20ca14725a41ea082b61a98477427c78528.tar.zst cuberite-f91de20ca14725a41ea082b61a98477427c78528.zip |
Diffstat (limited to 'src/Globals.h')
-rw-r--r-- | src/Globals.h | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/Globals.h b/src/Globals.h index f0726454b..654ede95f 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -268,33 +268,47 @@ template class SizeChecker<UInt16, 2>; #include "OSSupport/StackTrace.h" #else // Logging functions -void inline LOGERROR(const char* a_Format, ...) FORMATSTRING(1, 2); +void inline LOGERROR(const char * a_Format, ...) FORMATSTRING(1, 2); -void inline LOGERROR(const char* a_Format, ...) +void inline LOGERROR(const char * a_Format, ...) { va_list argList; va_start(argList, a_Format); vprintf(a_Format, argList); + putchar('\n'); va_end(argList); } -void inline LOGWARNING(const char* a_Format, ...) FORMATSTRING(1, 2); +void inline LOGWARNING(const char * a_Format, ...) FORMATSTRING(1, 2); -void inline LOGWARNING(const char* a_Format, ...) +void inline LOGWARNING(const char * a_Format, ...) { va_list argList; va_start(argList, a_Format); vprintf(a_Format, argList); + putchar('\n'); va_end(argList); } -void inline LOGD(const char* a_Format, ...) FORMATSTRING(1, 2); +void inline LOGD(const char * a_Format, ...) FORMATSTRING(1, 2); -void inline LOGD(const char* a_Format, ...) +void inline LOGD(const char * a_Format, ...) { va_list argList; va_start(argList, a_Format); vprintf(a_Format, argList); + putchar('\n'); + va_end(argList); +} + +void inline LOG(const char * a_Format, ...) FORMATSTRING(1, 2); + +void inline LOG(const char * a_Format, ...) +{ + va_list argList; + va_start(argList, a_Format); + vprintf(a_Format, argList); + putchar('\n'); va_end(argList); } |