浏览代码

nathelper: removed function names from log messages

Daniel-Constantin Mierla 8 年之前
父节点
当前提交
2ba989deb0
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/modules/nathelper/nathelper.c

+ 3 - 3
src/modules/nathelper/nathelper.c

@@ -2350,7 +2350,7 @@ sel_rewrite_contact(str* res, select_t* s, struct sip_msg* msg)
 	res->len = 0;
 	res->len = 0;
 	n = s->params[2].v.i;
 	n = s->params[2].v.i;
 	if (n <= 0) {
 	if (n <= 0) {
-		LOG(L_ERR, "ERROR: rewrite_contact[%d]: zero or negative index not supported\n", n);
+		LM_ERR("rewrite contact[%d] - zero or negative index not supported\n", n);
 		return -1;
 		return -1;
 	}
 	}
 	c = 0;
 	c = 0;
@@ -2361,7 +2361,7 @@ sel_rewrite_contact(str* res, select_t* s, struct sip_msg* msg)
 	} while (n > 0);
 	} while (n > 0);
 
 
 	if (parse_uri(c->uri.s, c->uri.len, &uri) < 0 || uri.host.len <= 0) {
 	if (parse_uri(c->uri.s, c->uri.len, &uri) < 0 || uri.host.len <= 0) {
-		LOG(L_ERR, "rewrite_contact[%d]: Error while parsing Contact URI\n", s->params[2].v.i);
+		LM_ERR("rewrite contact[%d] - error while parsing Contact URI\n", s->params[2].v.i);
 		return -1;
 		return -1;
 	}
 	}
 	len = c->len - uri.host.len;
 	len = c->len - uri.host.len;
@@ -2371,7 +2371,7 @@ sel_rewrite_contact(str* res, select_t* s, struct sip_msg* msg)
 	if (!def_port_fl)
 	if (!def_port_fl)
 		len += 1/*:*/+5/*port*/;
 		len += 1/*:*/+5/*port*/;
 	if (len > sizeof(buf)) {
 	if (len > sizeof(buf)) {
-		LOG(L_ERR, "ERROR: rewrite_contact[%d]: contact too long\n", s->params[2].v.i);
+		LM_ERR("rewrite contact[%d] - contact too long\n", s->params[2].v.i);
 		return -1;
 		return -1;
 	}
 	}
 	hostport = uri.host;
 	hostport = uri.host;