]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
log: fix tvhtrace_enabled(), fixes #2876
authorJaroslav Kysela <perex@perex.cz>
Sun, 24 May 2015 19:30:06 +0000 (21:30 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 24 May 2015 19:30:06 +0000 (21:30 +0200)
src/tvhlog.h

index eae2f5e1bd5dd3be8acb8de571b7f2c4e02620ff..51de5a3f77189e450707e0385aa558095947a0b0 100644 (file)
@@ -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()) \