summaryrefslogtreecommitdiff
path: root/toxcore/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/logger.h')
-rw-r--r--toxcore/logger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/logger.h b/toxcore/logger.h
index abef4b84..d8292f31 100644
--- a/toxcore/logger.h
+++ b/toxcore/logger.h
@@ -53,7 +53,7 @@ char* logger_timestr (char* dest);
53#define _SFILE (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) 53#define _SFILE (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
54#endif 54#endif
55 55
56#define WRITE_FORMAT(__LEVEL__, format) char* the_str = calloc(sizeof(char), strlen(format)+ 500); sprintf(the_str, "[%u] [%s] [%s] [%s:%d %s()] %s\n", \ 56#define WRITE_FORMAT(__LEVEL__, format) char* the_str = calloc(sizeof(char), strlen(format)+ 500); sprintf(the_str, "\n[%u] [%s] [%s] [%s:%d %s()] %s", \
57 logger_get_pid(), logger_stringify_level(__LEVEL__), logger_timestr(__time__), _SFILE, __LINE__, __func__, format) 57 logger_get_pid(), logger_stringify_level(__LEVEL__), logger_timestr(__time__), _SFILE, __LINE__, __func__, format)
58 58
59/* Use these macros */ 59/* Use these macros */