From b3ace3b239e3999d1549af9c0ce98f2d320440bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rostislav=20St=C5=99=C3=ADbrn=C3=BD?= Date: Fri, 4 Nov 2022 14:28:33 +0100 Subject: [PATCH] fix --- src/log.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/log.h b/src/log.h index df61e25..566cb21 100644 --- a/src/log.h +++ b/src/log.h @@ -60,31 +60,31 @@ typedef void (*log_LockFn)(bool lock, void *udata); // Pre-C99 compatible definitions - BEGIN #define log_internal1(level, file, line, arg1) \ do { \ - if (LOG_TRACE >= RXI_LOGC_DEFAULT_LEVEL) \ + if (level >= RXI_LOGC_DEFAULT_LEVEL) \ log_log(level, file, line, arg1); \ } while (0) #define log_internal2(level, file, line, arg1, arg2) \ do { \ - if (LOG_TRACE >= RXI_LOGC_DEFAULT_LEVEL) \ + if (level >= RXI_LOGC_DEFAULT_LEVEL) \ log_log(level, file, line, arg1, arg2); \ } while (0) #define log_internal3(level, file, line, arg1, arg2, arg3) \ do { \ - if (LOG_TRACE >= RXI_LOGC_DEFAULT_LEVEL) \ + if (level >= RXI_LOGC_DEFAULT_LEVEL) \ log_log(level, file, line, arg1, arg2, arg3); \ } while (0) #define log_internal4(level, file, line, arg1, arg2, arg3, arg4) \ do { \ - if (LOG_TRACE >= RXI_LOGC_DEFAULT_LEVEL) \ + if (level >= RXI_LOGC_DEFAULT_LEVEL) \ log_log(level, file, line, arg1, arg2, arg3, arg4); \ } while (0) #define log_internal5(level, file, line, arg1, arg2, arg3, arg4, arg5) \ do { \ - if (LOG_TRACE >= RXI_LOGC_DEFAULT_LEVEL) \ + if (level >= RXI_LOGC_DEFAULT_LEVEL) \ log_log(level, file, line, arg1, arg2, arg3, arg4, arg5); \ } while (0)