summaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-02-18 07:18:14 +0000
committerPeter Palfrader <peter@palfrader.org>2006-02-18 07:18:14 +0000
commit42f14e8e10462ff6f680795024db09076ee190fd (patch)
tree857f7e945ced9e919bf570ec327dc9699a5b168d /src/common/log.c
parent49ed6a1f40b766baa1ef4372e2a6f0fd25cd9bbd (diff)
downloadtor-42f14e8e10462ff6f680795024db09076ee190fd.tar.gz
tor-42f14e8e10462ff6f680795024db09076ee190fd.zip
Add function names to log_* on non-gcc
svn:r6039
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 2602f38342..68a3c068e0 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -264,47 +264,47 @@ _log_fn(int severity, uint32_t domain, const char *format, ...)
_log_fn_function_name = NULL;
}
void
-log_debug(uint32_t domain, const char *format, ...)
+_log_debug(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
- logv(LOG_DEBUG, domain, NULL, format, ap);
+ logv(LOG_DEBUG, domain, _log_fn_function_name, format, ap);
va_end(ap);
_log_fn_function_name = NULL;
}
void
-log_info(uint32_t domain, const char *format, ...)
+_log_info(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
- logv(LOG_INFO, domain, NULL, format, ap);
+ logv(LOG_INFO, domain, _log_fn_function_name, format, ap);
va_end(ap);
_log_fn_function_name = NULL;
}
void
-log_notice(uint32_t domain, const char *format, ...)
+_log_notice(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
- logv(LOG_NOTICE, domain, NULL, format, ap);
+ logv(LOG_NOTICE, domain, _log_fn_function_name, format, ap);
va_end(ap);
_log_fn_function_name = NULL;
}
void
-log_warn(uint32_t domain, const char *format, ...)
+_log_warn(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
- logv(LOG_WARN, domain, NULL, format, ap);
+ logv(LOG_WARN, domain, _log_fn_function_name, format, ap);
va_end(ap);
_log_fn_function_name = NULL;
}
void
-log_err(uint32_t domain, const char *format, ...)
+_log_err(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
- logv(LOG_ERR, domain, NULL, format, ap);
+ logv(LOG_ERR, domain, _log_fn_function_name, format, ap);
va_end(ap);
_log_fn_function_name = NULL;
}