Browse code

- malloc debugging on by default (warning: lots of debugging info) - malloc hash size adjusted - avpops: 64 bit warnings fixed - tm: log messages

Andrei Pelinescu-Onciul authored on 17/11/2004 23:26:03
Showing 5 changed files
... ...
@@ -50,7 +50,7 @@ MAIN_NAME=ser
50 50
 VERSION = 0
51 51
 PATCHLEVEL = 8
52 52
 SUBLEVEL =   99
53
-EXTRAVERSION = -dev15
53
+EXTRAVERSION = -dev16
54 54
 
55 55
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
56 56
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
... ...
@@ -293,7 +293,8 @@ DEFS+= $(extra_defs) \
293 293
 	 -DUSE_MCAST \
294 294
 	 -DUSE_TCP \
295 295
 	 -DDISABLE_NAGLE \
296
-	 -DF_MALLOC \
296
+	 -DDBG_QM_MALLOC \
297
+	# -DF_MALLOC \
297 298
 	# -DDBG_QM_MALLOC \
298 299
 	# -DDBG_F_MALLOC \
299 300
 	 #-DF_MALLOC \
... ...
@@ -60,7 +60,7 @@
60 60
 
61 61
 
62 62
 
63
-#define F_MALLOC_OPTIMIZE_FACTOR 11UL /*used below */
63
+#define F_MALLOC_OPTIMIZE_FACTOR 14UL /*used below */
64 64
 #define F_MALLOC_OPTIMIZE  (1UL<<F_MALLOC_OPTIMIZE_FACTOR)
65 65
 								/* size to optimize for,
66 66
 									(most allocs <= this size),
... ...
@@ -62,7 +62,7 @@
62 62
 
63 63
 
64 64
 
65
-#define QM_MALLOC_OPTIMIZE_FACTOR 11UL /*used below */
65
+#define QM_MALLOC_OPTIMIZE_FACTOR 14UL /*used below */
66 66
 #define QM_MALLOC_OPTIMIZE  ((unsigned long)(1UL<<QM_MALLOC_OPTIMIZE_FACTOR))
67 67
 								/* size to optimize for,
68 68
 									(most allocs <= this size),
... ...
@@ -228,7 +228,7 @@ inline static int update_totag_set(struct cell *t, struct sip_msg *ok)
228 228
 	}
229 229
 	tag=&get_to(ok)->tag_value;
230 230
 	if (!tag->s) {
231
-		LOG(L_ERR, "ERROR: update_totag_set: no tag in to\n");
231
+		DBG("ERROR: update_totag_set: no tag in to\n");
232 232
 		return 0;
233 233
 	}
234 234
 
... ...
@@ -439,8 +439,8 @@ static int script_init( struct sip_msg *foo, void *bar)
439 439
 
440 440
 static int mod_init(void)
441 441
 {
442
-	DBG( "TM - (size of cell=%ld) initializing...\n", 
443
-			(long)sizeof(struct cell));
442
+	DBG( "TM - (size of cell=%ld, sip_msg=%ld) initializing...\n", 
443
+			(long)sizeof(struct cell), (long)sizeof(struct sip_msg));
444 444
 	/* checking if we have sufficient bitmap capacity for given
445 445
 	   maximum number of  branches */
446 446
 	if (MAX_BRANCHES+1>31) {