diff options
author | Roger Dingledine <arma@torproject.org> | 2006-02-13 08:01:59 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-02-13 08:01:59 +0000 |
commit | 6ce36ead4284cdd973fdc4e310a2052fd9d46658 (patch) | |
tree | 58a8571bafd422da915b4db38770aadf3bf35073 /src/common/log.h | |
parent | ccd68275c4b41b15166f8a69c7ae5ff769e5ffcd (diff) | |
download | tor-6ce36ead4284cdd973fdc4e310a2052fd9d46658.tar.gz tor-6ce36ead4284cdd973fdc4e310a2052fd9d46658.zip |
Start the process of converting warn to log_warn and so on.
This is needed because Windows already has an err() that we
can't clobber. And we need to be able to make the log functions
a macro so we can print the function's name in the log entry.
svn:r6000
Diffstat (limited to 'src/common/log.h')
-rw-r--r-- | src/common/log.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/log.h b/src/common/log.h index 785b6c5567..6b3b4b2b87 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -128,15 +128,15 @@ 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 debug(domain, args...) \ +#define log_debug(domain, args...) \ _log_fn(LOG_DEBUG, domain, __PRETTY_FUNCTION__, args) -#define info(domain, args...) \ +#define log_info(domain, args...) \ _log_fn(LOG_INFO, domain, __PRETTY_FUNCTION__, args) -#define notice(domain, args...) \ +#define log_notice(domain, args...) \ _log_fn(LOG_NOTICE, domain, __PRETTY_FUNCTION__, args) -#define warn(domain, args...) \ +#define log_warn(domain, args...) \ _log_fn(LOG_WARN, domain, __PRETTY_FUNCTION__, args) -#define err(domain, args...) \ +#define log_err(domain, args...) \ _log_fn(LOG_ERR, domain, __PRETTY_FUNCTION__, args) #else /* ! defined(__GNUC__) */ |