Browse code

id.c: logging: convert LOG to LM_*

Ovidiu Sas authored on 03/10/2014 18:55:49
Showing 1 changed files
... ...
@@ -100,17 +100,17 @@ int get_from_uid(str* uid, struct sip_msg* msg)
100 100
 		} else {
101 101
 			     /* Get From URI username */
102 102
 			if (parse_from_header(msg) < 0) {
103
-				LOG(L_ERR, "get_from_uid: Error while parsing From header\n");
103
+				LM_ERR("unable to parse From header\n");
104 104
 				return -1;
105 105
 			}
106 106
 			from = get_from(msg);
107 107
 			if (parse_uri(from->uri.s, from->uri.len, &puri) == -1) {
108
-				LOG(L_ERR, "get_from_uid: Error while parsing From URI\n");
108
+				LM_ERR("unable to parsie From URI\n");
109 109
 				return -1;
110 110
 			}
111 111
 		
112 112
 			if (puri.user.len > MAX_URI_SIZE) {
113
-				LOG(L_ERR, "get_from_uid: Username too long\n");
113
+				LM_ERR("username too long\n");
114 114
 				return -1;
115 115
 			}
116 116
 			memcpy(buf, puri.user.s, puri.user.len);