--- /dev/null
+ o Minor bugfix (zu format specifier on minGW):
+ - Fix minGW compatibility issue. Define TOR_PRIuSZ as minGW compiler
+ doesn't support zu format specifier for size_t type. Fixes bug 24861;
+ bugfix on ac9eebd6363.
+ Patch by "ffmancera".
#endif /* (SIZEOF_SIZE_T == 4) || ... */
#endif /* !defined(SIZE_MAX) */
+#ifdef _WIN32
+# ifdef _WIN64
+# define TOR_PRIuSZ PRIu64
+# else
+# define TOR_PRIuSZ PRIu32
+# endif
+#else
+# define TOR_PRIuSZ "zu"
+#endif
+
#ifndef SSIZE_MAX
#if (SIZEOF_SIZE_T == 4)
#define SSIZE_MAX INT32_MAX
* logic, which was originally circuit-focused.
**/
#define CIRCUITLIST_PRIVATE
+#include "torint.h" /* TOR_PRIuSZ */
+
#include "or.h"
#include "channel.h"
#include "circpathbias.h"
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(),