aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTy Lamontagne <[email protected]>2022-10-18 14:21:34 -0400
committerMatthew Gregan <[email protected]>2022-10-19 09:53:31 +1300
commit27d2a102b0b75d9e49d43bc1ea516233fb87d778 (patch)
tree92b30aa45c630b56b7c5db437ca00b2de2d368a2
parent6b474ee4045561f65eb5a720205307db809812b4 (diff)
downloadcubeb-27d2a102b0b75d9e49d43bc1ea516233fb87d778.tar.gz
cubeb-27d2a102b0b75d9e49d43bc1ea516233fb87d778.zip
Properly compare against current log level
-rw-r--r--src/cubeb_log.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cubeb_log.h b/src/cubeb_log.h
index 54ddbd3..fb3b719 100644
--- a/src/cubeb_log.h
+++ b/src/cubeb_log.h
@@ -54,14 +54,14 @@ cubeb_async_log_reset_threads(void);
#define LOG_INTERNAL(level, fmt, ...) \
do { \
- if (cubeb_log_get_level() <= level && cubeb_log_get_callback()) { \
+ if (cubeb_log_get_level() >= level && cubeb_log_get_callback()) { \
cubeb_log_internal(__FILENAME__, __LINE__, fmt, ##__VA_ARGS__); \
} \
} while (0)
#define ALOG_INTERNAL(level, fmt, ...) \
do { \
- if (cubeb_log_get_level() <= level && cubeb_log_get_callback()) { \
+ if (cubeb_log_get_level() >= level && cubeb_log_get_callback()) { \
cubeb_async_log(fmt, ##__VA_ARGS__); \
} \
} while (0)