[sr-dev] git:carstenbock/ims: - removed reference to debug

Carsten Bock carsten at bock.info
Tue Jan 11 23:04:50 CET 2011


Module: sip-router
Branch: carstenbock/ims
Commit: c54071efb9dc7eaa10c8c93d534a103be5eea4f2
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c54071efb9dc7eaa10c8c93d534a103be5eea4f2

Author: Carsten Bock <carsten at bock.info>
Committer: Carsten Bock <carsten at bock.info>
Date:   Tue Jan 11 23:02:51 2011 +0100

- removed reference to debug

---

 modules/ecscf/dlg_state.c      |    3 +--
 modules/lrf/dlg_state.c        |    2 +-
 modules/lrf/locsip_subscribe.c |    3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/ecscf/dlg_state.c b/modules/ecscf/dlg_state.c
index b504a61..269ca04 100644
--- a/modules/ecscf/dlg_state.c
+++ b/modules/ecscf/dlg_state.c
@@ -60,7 +60,6 @@
 
 #include "sip.h"
 
-extern int debug;
 extern struct tm_binds tmb;
 
 int e_dialogs_hash_size;						/**< size of the dialog hash table 					*/
@@ -638,7 +637,7 @@ void print_e_dialogs(int log_level)
 {
 	e_dialog *d;
 	int i;
-	if (debug<log_level) return; /* to avoid useless calls when nothing will be printed */
+	if (L_DBG<log_level) return; /* to avoid useless calls when nothing will be printed */
 	d_act_time();
 	LOG(log_level,"INF:"M_NAME":----------  E-CSCF Dialog List begin --------------\n");
 	for(i=0;i<e_dialogs_hash_size;i++){
diff --git a/modules/lrf/dlg_state.c b/modules/lrf/dlg_state.c
index 0c27eab..fd6a81b 100644
--- a/modules/lrf/dlg_state.c
+++ b/modules/lrf/dlg_state.c
@@ -532,7 +532,7 @@ void print_lrf_dialogs(int log_level)
 {
 	lrf_dialog *d;
 	int i,j;
-	//if (debug<log_level) return; /* to avoid useless calls when nothing will be printed */
+	if (L_DBG<log_level) return; /* to avoid useless calls when nothing will be printed */
 	d_act_time();
 	LOG(log_level,"INF:"M_NAME":----------  LRF Dialog List begin --------------\n");
 	for(i=0;i<lrf_dialogs_hash_size;i++){
diff --git a/modules/lrf/locsip_subscribe.c b/modules/lrf/locsip_subscribe.c
index 1076520..4c51564 100644
--- a/modules/lrf/locsip_subscribe.c
+++ b/modules/lrf/locsip_subscribe.c
@@ -73,7 +73,6 @@
 #include "sip.h"
 #include "user_data.h"
 
-extern int debug;
 extern struct tm_binds tmb;   		/**< Structure with pointers to tm funcs 		*/
 extern dlg_func_t dialogb;			/**< Structure with pointers to dialog funcs			*/
 
@@ -650,7 +649,7 @@ void print_subs(int log_level)
 {
 	loc_subscription *s;
 	int i;
-	if (debug<log_level) return; /* to avoid useless calls when nothing will be printed */	
+	if (L_DBG<log_level) return; /* to avoid useless calls when nothing will be printed */	
 	LOG(log_level,ANSI_GREEN"INF:"M_NAME":----------  Subscription list begin ---------\n");
 	for(i=0;i<subscriptions_hash_size;i++){
 		subs_lock(i);




More information about the sr-dev mailing list