aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-12-17 21:14:13 +0000
committerRoger Dingledine <arma@torproject.org>2003-12-17 21:14:13 +0000
commiteb730c41c8a799bc61dfd7d106443fe467921caa (patch)
tree20154333f62aadb2d851d42baae6dc30a57067bf /src/common/log.c
parent6a19e64066fc0fb362db9b16e386008807d0984c (diff)
downloadtor-eb730c41c8a799bc61dfd7d106443fe467921caa.tar
tor-eb730c41c8a799bc61dfd7d106443fe467921caa.tar.gz
clean tabs, trailing whitespace
svn:r952
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 791883c16..947029079 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -30,8 +30,8 @@ static logfile_t *logfiles = NULL;
* of 'logv' so that we never format a message more than once.
*/
static INLINE void format_msg(char *buf, size_t buf_len,
- int severity, const char *funcname,
- const char *format, va_list ap)
+ int severity, const char *funcname,
+ const char *format, va_list ap)
{
time_t t;
struct timeval now;
@@ -44,7 +44,7 @@ static INLINE void format_msg(char *buf, size_t buf_len,
n = strftime(buf, buf_len, "%b %d %H:%M:%S", localtime(&t));
n += snprintf(buf+n, buf_len-n,
- ".%.3ld [%s] ",
+ ".%.3ld [%s] ",
(long)now.tv_usec / 1000, sev_to_string(severity));
if(n > buf_len)
n = buf_len-1; /* the *nprintf funcs return how many bytes they
@@ -64,7 +64,7 @@ static INLINE void format_msg(char *buf, size_t buf_len,
buf[n+1]='\0';
}
-static void
+static void
logv(int severity, const char *funcname, const char *format, va_list ap)
{
char buf[10024];
@@ -145,7 +145,7 @@ void add_stream_log(int loglevel, const char *name, FILE *stream)
* If opening the logfile fails, -1 is returned and
* errno is set appropriately (by fopen)
*/
-int add_file_log(int loglevel, const char *filename)
+int add_file_log(int loglevel, const char *filename)
{
FILE *f;
f = fopen(filename, "a");