From: Jaroslav Kysela Date: Sun, 24 May 2015 19:30:06 +0000 (+0200) Subject: log: fix tvhtrace_enabled(), fixes #2876 X-Git-Tag: v4.2.1~2479 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afb044d4f52a92e8b71f1cfe8f5e8638b14368b3;p=thirdparty%2Ftvheadend.git log: fix tvhtrace_enabled(), fixes #2876 --- 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()) \