aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-01 06:15:48 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-01 06:15:48 +0000
commit87e8e7b4facf8869633e5bbd9bc811d6998da137 (patch)
tree22d2e84036e5d1d9536c31df7ac55fd2a4f6de9d /src/common/log.c
parent40ecaf4857940093b3dd501993e0ae5fc6a5384d (diff)
downloadtor-87e8e7b4facf8869633e5bbd9bc811d6998da137.tar.gz
tor-87e8e7b4facf8869633e5bbd9bc811d6998da137.zip
using an unsigned int for something that requires at least 3 bytes
makes me uncomfortable. svn:r5340
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/log.c b/src/common/log.c
index d8b0e8dd01..9807fd2921 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -184,7 +184,7 @@ format_msg(char *buf, size_t buf_len,
* message. The actual message is derived as from tor_snprintf(format,ap).
*/
static void
-logv(int severity, unsigned int domain, const char *funcname, const char *format,
+logv(int severity, uint32_t domain, const char *funcname, const char *format,
va_list ap)
{
char buf[10024];
@@ -234,7 +234,7 @@ logv(int severity, unsigned int domain, const char *funcname, const char *format
/** Output a message to the log. */
void
-_log(int severity, unsigned int domain, const char *format, ...)
+_log(int severity, uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
@@ -245,7 +245,7 @@ _log(int severity, unsigned int domain, const char *format, ...)
/** Output a message to the log, prefixed with a function name <b>fn</b>. */
#ifdef __GNUC__
void
-_log_fn(int severity, unsigned int domain, const char *fn, const char *format, ...)
+_log_fn(int severity, uint32_t domain, const char *fn, const char *format, ...)
{
va_list ap;
va_start(ap,format);
@@ -255,7 +255,7 @@ _log_fn(int severity, unsigned int domain, const char *fn, const char *format, .
#else
const char *_log_fn_function_name=NULL;
void
-_log_fn(int severity, unsigned int domain, const char *format, ...)
+_log_fn(int severity, uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
@@ -264,7 +264,7 @@ _log_fn(int severity, unsigned int domain, const char *format, ...)
_log_fn_function_name = NULL;
}
void
-_debug(unsigned int domain, const char *format, ...)
+_debug(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
@@ -273,7 +273,7 @@ _debug(unsigned int domain, const char *format, ...)
_log_fn_function_name = NULL;
}
void
-_info(unsigned int domain, const char *format, ...)
+_info(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
@@ -282,7 +282,7 @@ _info(unsigned int domain, const char *format, ...)
_log_fn_function_name = NULL;
}
void
-_notice(unsigned int domain, const char *format, ...)
+_notice(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
@@ -291,7 +291,7 @@ _notice(unsigned int domain, const char *format, ...)
_log_fn_function_name = NULL;
}
void
-_warn(unsigned int domain, const char *format, ...)
+_warn(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);
@@ -300,7 +300,7 @@ _warn(unsigned int domain, const char *format, ...)
_log_fn_function_name = NULL;
}
void
-_err(unsigned int domain, const char *format, ...)
+_err(uint32_t domain, const char *format, ...)
{
va_list ap;
va_start(ap,format);