aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-10-06 10:57:31 -0400
committerNick Mathewson <nickm@torproject.org>2015-10-06 10:57:31 -0400
commit41782bf3ac0ce1d2b3363585e652dfe944a9a58e (patch)
tree63a530353c610059ac5da1fbd1006366b5646e4b /src/common
parent20ec030d9b6ff0e403e37d2161f3e53dfd6dd622 (diff)
parentc44a94606a27e3dd9eb02083c05d87f9fe049b91 (diff)
downloadtor-41782bf3ac0ce1d2b3363585e652dfe944a9a58e.tar.gz
tor-41782bf3ac0ce1d2b3363585e652dfe944a9a58e.zip
Merge remote-tracking branch 'tvdw/fix-16563'
Diffstat (limited to 'src/common')
-rw-r--r--src/common/torlog.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/torlog.h b/src/common/torlog.h
index 722d595ee0..3e8667895f 100644
--- a/src/common/torlog.h
+++ b/src/common/torlog.h
@@ -184,25 +184,25 @@ void log_fn_ratelim_(struct ratelim_t *ratelim, int severity,
/** Log a message at level <b>severity</b>, using a pretty-printed version
* of the current function name. */
#define log_fn(severity, domain, args...) \
- log_fn_(severity, domain, __PRETTY_FUNCTION__, args)
+ log_fn_(severity, domain, __FUNCTION__, args)
/** As log_fn, but use <b>ratelim</b> (an instance of ratelim_t) to control
* the frequency at which messages can appear.
*/
#define log_fn_ratelim(ratelim, severity, domain, args...) \
- log_fn_ratelim_(ratelim, severity, domain, __PRETTY_FUNCTION__, args)
+ log_fn_ratelim_(ratelim, severity, domain, __FUNCTION__, args)
#define log_debug(domain, args...) \
STMT_BEGIN \
if (PREDICT_UNLIKELY(log_global_min_severity_ == LOG_DEBUG)) \
- log_fn_(LOG_DEBUG, domain, __PRETTY_FUNCTION__, args); \
+ log_fn_(LOG_DEBUG, domain, __FUNCTION__, args); \
STMT_END
#define log_info(domain, args...) \
- log_fn_(LOG_INFO, domain, __PRETTY_FUNCTION__, args)
+ log_fn_(LOG_INFO, domain, __FUNCTION__, args)
#define log_notice(domain, args...) \
- log_fn_(LOG_NOTICE, domain, __PRETTY_FUNCTION__, args)
+ log_fn_(LOG_NOTICE, domain, __FUNCTION__, args)
#define log_warn(domain, args...) \
- log_fn_(LOG_WARN, domain, __PRETTY_FUNCTION__, args)
+ log_fn_(LOG_WARN, domain, __FUNCTION__, args)
#define log_err(domain, args...) \
- log_fn_(LOG_ERR, domain, __PRETTY_FUNCTION__, args)
+ log_fn_(LOG_ERR, domain, __FUNCTION__, args)
#else /* ! defined(__GNUC__) */