Browse Source

id.c: logging: convert LOG to LM_*

Ovidiu Sas 11 years ago
parent
commit
94b74cf8bf
1 changed files with 3 additions and 3 deletions
  1. 3 3
      id.c

+ 3 - 3
id.c

@@ -100,17 +100,17 @@ int get_from_uid(str* uid, struct sip_msg* msg)
 		} else {
 		} else {
 			     /* Get From URI username */
 			     /* Get From URI username */
 			if (parse_from_header(msg) < 0) {
 			if (parse_from_header(msg) < 0) {
-				LOG(L_ERR, "get_from_uid: Error while parsing From header\n");
+				LM_ERR("unable to parse From header\n");
 				return -1;
 				return -1;
 			}
 			}
 			from = get_from(msg);
 			from = get_from(msg);
 			if (parse_uri(from->uri.s, from->uri.len, &puri) == -1) {
 			if (parse_uri(from->uri.s, from->uri.len, &puri) == -1) {
-				LOG(L_ERR, "get_from_uid: Error while parsing From URI\n");
+				LM_ERR("unable to parsie From URI\n");
 				return -1;
 				return -1;
 			}
 			}
 		
 		
 			if (puri.user.len > MAX_URI_SIZE) {
 			if (puri.user.len > MAX_URI_SIZE) {
-				LOG(L_ERR, "get_from_uid: Username too long\n");
+				LM_ERR("username too long\n");
 				return -1;
 				return -1;
 			}
 			}
 			memcpy(buf, puri.user.s, puri.user.len);
 			memcpy(buf, puri.user.s, puri.user.len);