diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-12-15 17:10:53 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-12-15 19:01:40 -0500 |
commit | ad7f68585b6ecd88d7e1bc40c2f3685624cbf928 (patch) | |
tree | 19dcc5fcd8da73bd0609578921f35a99cbeecb87 | |
parent | 4c6c65e70cbe1e6b4b409ba18b71b2a8fb251d83 (diff) | |
download | sway-ad7f68585b6ecd88d7e1bc40c2f3685624cbf928.tar.xz |
Always log filename and line number
-rw-r--r-- | include/log.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/log.h b/include/log.h index ca8c1fe3..2c4150e4 100644 --- a/include/log.h +++ b/include/log.h @@ -25,13 +25,8 @@ bool _sway_assert(bool condition, const char* format, ...) __attribute__((format void _sway_log(const char *filename, int line, log_importance_t verbosity, const char* format, ...) __attribute__((format(printf,4,5))); -#ifndef NDEBUG #define sway_log(VERBOSITY, FMT, ...) \ _sway_log(__FILE__, __LINE__, VERBOSITY, FMT, ##__VA_ARGS__) -#else -#define sway_log(VERBOSITY, FMT, ...) \ - _sway_log(NULL, 0, VERBOSITY, FMT, ##__VA_ARGS__) -#endif void error_handler(int sig); |