summaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffernandezmancera@gmail.com>2018-01-12 17:44:30 +0100
committerFernando Fernandez Mancera <ffernandezmancera@gmail.com>2018-01-12 17:44:30 +0100
commit06368e531097d3b973f1f052e77e7ffdecde1b70 (patch)
tree896316ffa657b1be13b5d358db6f3eb7059fad2b /src/or/circuitlist.c
parentc8c258a4333815e195097a59801397dd7a169828 (diff)
downloadtor-06368e531097d3b973f1f052e77e7ffdecde1b70.tar.gz
tor-06368e531097d3b973f1f052e77e7ffdecde1b70.zip
Fix minGW compatibility issue with zu format specifier.
Define TOR_PRIuSZ as minGW compiler doesn't support zu format specifier for size_t type. Fixes #24861 on ac9eebd. Signed-off-by: Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r--src/or/circuitlist.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 661438d8f1..028fdbfc2f 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -51,6 +51,8 @@
* logic, which was originally circuit-focused.
**/
#define CIRCUITLIST_PRIVATE
+#include "torint.h" /* TOR_PRIuSZ */
+
#include "or.h"
#include "channel.h"
#include "circpathbias.h"
@@ -2404,10 +2406,11 @@ circuits_handle_oom(size_t current_allocation)
int n_circuits_killed=0;
int n_dirconns_killed=0;
uint32_t now_ts;
- log_notice(LD_GENERAL, "We're low on memory (cell queues total alloc: %zu,"
- " buffer total alloc: %zu, tor compress total alloc: %zu,"
- " rendezvous cache total alloc: %zu). Killing circuits with"
- " over-long queues. (This behavior is controlled by"
+ log_notice(LD_GENERAL, "We're low on memory (cell queues total alloc:"
+ " %"TOR_PRIuSZ" buffer total alloc: %" TOR_PRIuSZ ","
+ " tor compress total alloc: %" TOR_PRIuSZ
+ " rendezvous cache total alloc: %" TOR_PRIuSZ "). Killing"
+ " circuits withover-long queues. (This behavior is controlled by"
" MaxMemInQueues.)",
cell_queues_get_total_allocation(),
buf_get_total_allocation(),