--- tor-0.1.0.17/src/common/log.c.bak 2005-04-08 06:47:18.000000000 +0300 +++ tor-0.1.0.17/src/common/log.c 2006-03-31 13:52:53.685885558 +0300 @@ -68,23 +68,14 @@ static int reset_log(logfile_t *lf); static INLINE size_t _log_prefix(char *buf, size_t buf_len, int severity) { - time_t t; - struct timeval now; - struct tm tm; - size_t n; int r; - tor_gettimeofday(&now); - t = (time_t)now.tv_sec; - - n = strftime(buf, buf_len, "%b %d %H:%M:%S", tor_localtime_r(&t, &tm)); - r = tor_snprintf(buf+n, buf_len-n, - ".%.3ld [%s] ", - (long)now.tv_usec / 1000, sev_to_string(severity)); + r = tor_snprintf(buf, buf_len, + "[%s] ", sev_to_string(severity)); if (r<0) return buf_len-1; else - return n+r; + return r; } /** If lf refers to an actual file that we have just opened, and the file