[sr-dev] git:master:508fe14d: re.c: logging: DBG->LM_DBG

Ovidiu Sas osas at voipembedded.com
Tue Jan 13 16:39:20 CET 2015


Module: kamailio
Branch: master
Commit: 508fe14d19514dbf977edd8284886821e12833dc
URL: https://github.com/kamailio/kamailio/commit/508fe14d19514dbf977edd8284886821e12833dc

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date: 2015-01-13T10:38:49-05:00

re.c: logging: DBG->LM_DBG

---

Modified: re.c

---

Diff:  https://github.com/kamailio/kamailio/commit/508fe14d19514dbf977edd8284886821e12833dc.diff
Patch: https://github.com/kamailio/kamailio/commit/508fe14d19514dbf977edd8284886821e12833dc.patch

---

diff --git a/re.c b/re.c
index eb8cfb0..81583b4 100644
--- a/re.c
+++ b/re.c
@@ -310,7 +310,7 @@ struct subst_expr* subst_parser(str* subst)
 	se->n_escapes=rw_no;
 	se->max_pmatch=max_pmatch;
 	for (r=0; r<rw_no; r++) se->replace[r]=rw[r];
-	DBG("subst_parser: ok, se is %p\n", se);
+	LM_DBG("ok, se is %p\n", se);
 	return se;
 	
 error:
@@ -433,7 +433,7 @@ struct replace_lst* subst_run(struct subst_expr* se, const char* input,
 	eflags=0;
 	do{
 		r=regexec(se->re, p, nmatch, pmatch, eflags);
-		DBG("subst_run: running. r=%d\n", r);
+		LM_DBG("running. r=%d\n", r);
 		/* subst */
 		if (r==0){ /* != REG_NOMATCH */
 			if (pmatch[0].rm_so==-1) {
@@ -452,7 +452,7 @@ struct replace_lst* subst_run(struct subst_expr* se, const char* input,
 			memset(*crt, 0, sizeof(struct replace_lst));
 			(*crt)->offset=pmatch[0].rm_so+(int)(p-input);
 			(*crt)->size=pmatch[0].rm_eo-pmatch[0].rm_so;
-			DBG("subst_run: matched (%d, %d): [%.*s]\n",
+			LM_DBG("matched (%d, %d): [%.*s]\n",
 					(*crt)->offset, (*crt)->size, 
 					(*crt)->size, input+(*crt)->offset);
 			/* create subst. string */
@@ -502,7 +502,7 @@ str* subst_str(const char *input, struct sip_msg* msg, struct subst_expr* se,
 	end=input+len;
 	lst=subst_run(se, input, msg, count);
 	if (lst==0){
-		DBG("subst_str: no match\n");
+		LM_DBG("no match\n");
 		return 0;
 	}
 	for (l=lst; l; l=l->next)




More information about the sr-dev mailing list