diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-03-06 20:25:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-03-06 20:25:44 +0000 |
commit | 5d1bee87ffe3dcdaa9e7960b0fed836aa1d01b9b (patch) | |
tree | 5f9aea61df183fd3a5b88223789babc1fb859a67 /src/common/log.h | |
parent | c9e2766e7598a669d3acf3ae0e45e8be8b5945b0 (diff) | |
download | tor-5d1bee87ffe3dcdaa9e7960b0fed836aa1d01b9b.tar.gz tor-5d1bee87ffe3dcdaa9e7960b0fed836aa1d01b9b.zip |
r12468@Kushana: nickm | 2007-03-06 15:24:00 -0500
More unit tests: gcov is fun.
svn:r9748
Diffstat (limited to 'src/common/log.h')
-rw-r--r-- | src/common/log.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/log.h b/src/common/log.h index d01305b90a..af17e2e2c2 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -129,10 +129,10 @@ void _log_fn(int severity, uint32_t domain, * of the current function name. */ #define log_fn(severity, domain, args...) \ _log_fn(severity, domain, __PRETTY_FUNCTION__, args) -#define log_debug(domain, args...) \ - do { \ - if (PREDICT(_log_global_min_severity == LOG_DEBUG, 0)) \ - _log_fn(LOG_DEBUG, domain, __PRETTY_FUNCTION__, args); \ +#define log_debug(domain, args...) \ + do { \ + if (PREDICT_UNLIKELY(_log_global_min_severity == LOG_DEBUG)) \ + _log_fn(LOG_DEBUG, domain, __PRETTY_FUNCTION__, args); \ } while (0) #define log_info(domain, args...) \ _log_fn(LOG_INFO, domain, __PRETTY_FUNCTION__, args) |