aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2009-09-01 05:23:47 +0200
committerSebastian Hahn <sebastian@torproject.org>2009-09-01 18:36:27 +0200
commitaea9cf1011cf3c7badfd1bc49f0a27f96f234cf9 (patch)
treec66af3fe76725d159afe4f32e421c3c6a8db349c /src/common/log.c
parent075c004095e25940707aa496b49e29caefdd73e8 (diff)
downloadtor-aea9cf1011cf3c7badfd1bc49f0a27f96f234cf9.tar.gz
tor-aea9cf1011cf3c7badfd1bc49f0a27f96f234cf9.zip
Fix compile warnings on Snow Leopard
Big thanks to nickm and arma for helping me with this!
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/log.c b/src/common/log.c
index ea09fca167..423a687a51 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -149,8 +149,8 @@ _log_prefix(char *buf, size_t buf_len, int severity)
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+n, buf_len-n, ".%.3i [%s] ",
+ (int)now.tv_usec / 1000, sev_to_string(severity));
if (r<0)
return buf_len-1;
else