[sr-dev] git:master:144da7f3: mem: TLSF fix max fragments macro

Camille Oudot camille.oudot at orange.com
Thu Apr 23 17:33:17 CEST 2015


Module: kamailio
Branch: master
Commit: 144da7f3aef010bb6c51b93c399875c233500189
URL: https://github.com/kamailio/kamailio/commit/144da7f3aef010bb6c51b93c399875c233500189

Author: Camille Oudot <camille.oudot at orange.com>
Committer: Camille Oudot <camille.oudot at orange.com>
Date: 2015-04-23T17:28:18+02:00

mem: TLSF fix max fragments macro

---

Modified: mem/tlsf.c

---

Diff:  https://github.com/kamailio/kamailio/commit/144da7f3aef010bb6c51b93c399875c233500189.diff
Patch: https://github.com/kamailio/kamailio/commit/144da7f3aef010bb6c51b93c399875c233500189.patch

---

diff --git a/mem/tlsf.c b/mem/tlsf.c
index 3b494d0..124409e 100644
--- a/mem/tlsf.c
+++ b/mem/tlsf.c
@@ -150,7 +150,7 @@ static const size_t block_size_max = tlsf_cast(size_t, 1) << FL_INDEX_MAX;
 
 #ifdef TLSF_STATS
 	#define TLSF_INCREASE_REAL_USED(control, increment) do {control->real_used += (increment) ; control->max_used = tlsf_max(control->real_used, control->max_used);}while(0)
-	#define TLSF_INCREASE_FRAGMENTS(control) do {control->fragments++ ; control->fragments = tlsf_max(control->fragments, control->max_fragments);}while(0)
+	#define TLSF_INCREASE_FRAGMENTS(control) do {control->fragments++ ; control->max_fragments = tlsf_max(control->fragments, control->max_fragments);}while(0)
 #endif
 
 /* The TLSF control structure. */




More information about the sr-dev mailing list