[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] make the 64 bit args print correctly on 64 bit archs
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
hibernate.c
Log Message:
make the 64 bit args print correctly on 64 bit archs
Index: hibernate.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/hibernate.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- hibernate.c 7 Dec 2004 23:20:10 -0000 1.38
+++ hibernate.c 8 Dec 2004 12:30:20 -0000 1.39
@@ -610,8 +610,8 @@
(char*)smartlist_get(elts,1),
(unsigned long)n_seconds_active_in_interval,
(unsigned long)((uint64_t)expected_bandwidth_usage*1024/60),
- n_bytes_read_in_interval,
- n_bytes_written_in_interval);
+ U64_PRINTF_ARG(n_bytes_read_in_interval),
+ U64_PRINTF_ARG(n_bytes_written_in_interval));
SMARTLIST_FOREACH(elts, char *, cp, tor_free(cp));
smartlist_free(elts);