From eb730c41c8a799bc61dfd7d106443fe467921caa Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 17 Dec 2003 21:14:13 +0000 Subject: clean tabs, trailing whitespace svn:r952 --- src/common/log.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/common/log.c') 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"); -- cgit v1.2.3