[sr-dev] git:master:c1836c5c: modparam.c: logging: DBG -> LM_DBG

Ovidiu Sas osas at voipembedded.com
Tue Jan 13 17:47:50 CET 2015


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

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date: 2015-01-13T11:47:19-05:00

modparam.c: logging: DBG -> LM_DBG

---

Modified: modparam.c

---

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

---

diff --git a/modparam.c b/modparam.c
index e3db03d..087f11e 100644
--- a/modparam.c
+++ b/modparam.c
@@ -78,8 +78,7 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
 	mod_found = 0;
 	for(t = modules; t; t = t->next) {
 		if (regexec(&preg, t->exports.name, 0, 0, 0) == 0) {
-			DBG("set_mod_param_regex: '%s' matches module '%s'\n",
-					regex, t->exports.name);
+			LM_DBG("'%s' matches module '%s'\n", regex, t->exports.name);
 			mod_found = 1;
 			/* PARAM_STR (PARAM_STRING) may be assigned also to PARAM_STRING(PARAM_STR) so let get both module param */
 			ptr = find_param_export(t, name, type | ((type & (PARAM_STR|PARAM_STRING))?PARAM_STR|PARAM_STRING:0), &param_type);
@@ -95,8 +94,7 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
 				} else {
 					val2 = val;
 				}
-				DBG("set_mod_param_regex: found <%s> in module %s [%s]\n",
-						name, t->exports.name, t->path);
+				LM_DBG("found <%s> in module %s [%s]\n", name, t->exports.name, t->path);
 				if (param_type & PARAM_USE_FUNC) {
 					if ( ((param_func_t)(ptr))(param_type, val2) < 0) {
 						regfree(&preg);




More information about the sr-dev mailing list