Browse code

modparam.c: logging: DBG -> LM_DBG

Ovidiu Sas authored on 13/01/2015 16:47:19
Showing 1 changed files
... ...
@@ -78,8 +78,7 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
78 78
 	mod_found = 0;
79 79
 	for(t = modules; t; t = t->next) {
80 80
 		if (regexec(&preg, t->exports.name, 0, 0, 0) == 0) {
81
-			DBG("set_mod_param_regex: '%s' matches module '%s'\n",
82
-					regex, t->exports.name);
81
+			LM_DBG("'%s' matches module '%s'\n", regex, t->exports.name);
83 82
 			mod_found = 1;
84 83
 			/* PARAM_STR (PARAM_STRING) may be assigned also to PARAM_STRING(PARAM_STR) so let get both module param */
85 84
 			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)
95 95
 				} else {
96 96
 					val2 = val;
97 97
 				}
98
-				DBG("set_mod_param_regex: found <%s> in module %s [%s]\n",
99
-						name, t->exports.name, t->path);
98
+				LM_DBG("found <%s> in module %s [%s]\n", name, t->exports.name, t->path);
100 99
 				if (param_type & PARAM_USE_FUNC) {
101 100
 					if ( ((param_func_t)(ptr))(param_type, val2) < 0) {
102 101
 						regfree(&preg);