diff options
author | Kenny Levinsen <kl@kl.wtf> | 2021-03-01 01:11:37 +0100 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-03-01 01:11:37 +0100 |
commit | 79b90788bd1b836e3d5449722e40e4628326574d (patch) | |
tree | 2fd5a9a405a039a41562b55765329023634026c2 /include | |
parent | 3a6a7e6b4c52119ddd0828808a210ae69c4392fe (diff) |
log: Remove function name from log
Diffstat (limited to 'include')
-rw-r--r-- | include/log.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/include/log.h b/include/log.h index 9aee33c..f5f423e 100644 --- a/include/log.h +++ b/include/log.h @@ -17,27 +17,21 @@ #define __FILENAME__ __FILE__ #endif -#define log_infof(fmt, ...) \ - _logf(LIBSEAT_LOG_LEVEL_INFO, "[%s:%d] %s: " fmt, __FILENAME__, __LINE__, __func__, \ - __VA_ARGS__) +#define log_infof(fmt, ...) \ + _logf(LIBSEAT_LOG_LEVEL_INFO, "[%s:%d] " fmt, __FILENAME__, __LINE__, __VA_ARGS__) -#define log_info(str) \ - _logf(LIBSEAT_LOG_LEVEL_INFO, "[%s:%d] %s: %s", __FILENAME__, __LINE__, __func__, str) +#define log_info(str) _logf(LIBSEAT_LOG_LEVEL_INFO, "[%s:%d] %s", __FILENAME__, __LINE__, str) -#define log_errorf(fmt, ...) \ - _logf(LIBSEAT_LOG_LEVEL_ERROR, "[%s:%d] %s: " fmt, __FILENAME__, __LINE__, __func__, \ - __VA_ARGS__) +#define log_errorf(fmt, ...) \ + _logf(LIBSEAT_LOG_LEVEL_ERROR, "[%s:%d] " fmt, __FILENAME__, __LINE__, __VA_ARGS__) -#define log_error(str) \ - _logf(LIBSEAT_LOG_LEVEL_ERROR, "[%s:%d] %s: %s", __FILENAME__, __LINE__, __func__, str) +#define log_error(str) _logf(LIBSEAT_LOG_LEVEL_ERROR, "[%s:%d] %s", __FILENAME__, __LINE__, str) #ifdef DEBUG -#define log_debugf(fmt, ...) \ - _logf(LIBSEAT_LOG_LEVEL_DEBUG, "[%s:%d] %s: " fmt, __FILENAME__, __LINE__, __func__, \ - __VA_ARGS__) +#define log_debugf(fmt, ...) \ + _logf(LIBSEAT_LOG_LEVEL_DEBUG, "[%s:%d] " fmt, __FILENAME__, __LINE__, __VA_ARGS__) -#define log_debug(str) \ - _logf(LIBSEAT_LOG_LEVEL_DEBUG, "[%s:%d] %s: %s", __FILENAME__, __LINE__, __func__, str) +#define log_debug(str) _logf(LIBSEAT_LOG_LEVEL_DEBUG, "[%s:%d] %s", __FILENAME__, __LINE__, str) #else #define log_debugf(fmt, ...) #define log_debug(str) |