From afb044d4f52a92e8b71f1cfe8f5e8638b14368b3 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 24 May 2015 21:30:06 +0200 Subject: [PATCH] log: fix tvhtrace_enabled(), fixes #2876 --- src/tvhlog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tvhlog.h b/src/tvhlog.h index eae2f5e1b..51de5a3f7 100644 --- a/src/tvhlog.h +++ b/src/tvhlog.h @@ -97,7 +97,7 @@ static inline int tvhlog_limit ( tvhlog_limit_t *limit, uint32_t delay ) #define tvhlog_spawn(severity, subsys, fmt, ...)\ _tvhlog(__FILE__, __LINE__, 0, severity, subsys, fmt, ##__VA_ARGS__) #if ENABLE_TRACE -#define tvhtrace_enabled() LOG_TRACE <= atomic_add(&tvhlog_level, 0) +#define tvhtrace_enabled() (LOG_TRACE <= atomic_add(&tvhlog_level, 0)) #define tvhtrace(subsys, fmt, ...) \ do { \ if (tvhtrace_enabled()) \ -- 2.47.2