2
0
Эх сурвалжийг харах

modparam.c: logging: DBG -> LM_DBG

Ovidiu Sas 10 жил өмнө
parent
commit
c1836c5c35
1 өөрчлөгдсөн 2 нэмэгдсэн , 4 устгасан
  1. 2 4
      modparam.c

+ 2 - 4
modparam.c

@@ -78,8 +78,7 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
 	mod_found = 0;
 	mod_found = 0;
 	for(t = modules; t; t = t->next) {
 	for(t = modules; t; t = t->next) {
 		if (regexec(&preg, t->exports.name, 0, 0, 0) == 0) {
 		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;
 			mod_found = 1;
 			/* PARAM_STR (PARAM_STRING) may be assigned also to PARAM_STRING(PARAM_STR) so let get both module param */
 			/* 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);
 			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 {
 				} else {
 					val2 = val;
 					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_type & PARAM_USE_FUNC) {
 					if ( ((param_func_t)(ptr))(param_type, val2) < 0) {
 					if ( ((param_func_t)(ptr))(param_type, val2) < 0) {
 						regfree(&preg);
 						regfree(&preg);