Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
log: fix tvhtrace_enabled(), fixes #2876
  • Loading branch information
perexg committed May 24, 2015
1 parent bb8fea8 commit afb044d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tvhlog.h
Expand Up @@ -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()) \
Expand Down

0 comments on commit afb044d

Please sign in to comment.