[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r13463: "0 bytes in 1 empty chunks" is hardly likely. (in tor/trunk: . src/common)



Author: nickm
Date: 2008-02-10 20:52:24 -0500 (Sun, 10 Feb 2008)
New Revision: 13463

Modified:
   tor/trunk/
   tor/trunk/ChangeLog
   tor/trunk/src/common/mempool.c
Log:
 r14111@tombo:  nickm | 2008-02-10 20:52:19 -0500
 "0 bytes in 1 empty chunks" is hardly likely.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r14111] on 49666b30-7950-49c5-bedf-9dc8f3168102

Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2008-02-11 01:09:24 UTC (rev 13462)
+++ tor/trunk/ChangeLog	2008-02-11 01:52:24 UTC (rev 13463)
@@ -1,3 +1,7 @@
+Changes in version 0.2.0.2-?? - 2008-02-??
+  o Minor bugfixes:
+    - Log the correct memory chunk sizes for empty RAM chunks in mempool.c
+
 Changes in version 0.2.0.19-alpha - 2008-02-09
   o Major features:
     - Do not include recognizeable strings in the commonname part of

Modified: tor/trunk/src/common/mempool.c
===================================================================
--- tor/trunk/src/common/mempool.c	2008-02-11 01:09:24 UTC (rev 13462)
+++ tor/trunk/src/common/mempool.c	2008-02-11 01:52:24 UTC (rev 13463)
@@ -608,7 +608,7 @@
     bytes_allocated += chunk->mem_size;
   }
   log_fn(severity, LD_MM, U64_FORMAT" bytes in %d empty chunks",
-         U64_PRINTF_ARG(bytes_used), pool->n_empty_chunks);
+         U64_PRINTF_ARG(bytes_allocated), pool->n_empty_chunks);
   for (chunk = pool->used_chunks; chunk; chunk = chunk->next) {
     ++n_used;
     bu += chunk->n_allocated * pool->item_alloc_size;