Browse code

id.c: logging: DBG -> LM_DBG

Ovidiu Sas authored on 13/01/2015 16:41:18
Showing 1 changed files
... ...
@@ -136,20 +136,19 @@ int get_to_uid(str* uid, struct sip_msg* msg)
136 136
 		if (msg->REQ_METHOD == METHOD_REGISTER) {
137 137
 			if ((msg->to==0) && 
138 138
 				(parse_headers(msg, HDR_TO_F, 0) < 0 || msg->to == 0)) {
139
-				DBG("get_to_uid: Error while parsing To URI: "
140
-					" to header bad or missing\n");
139
+				LM_DBG("Error while parsing To URI: to header bad or missing\n");
141 140
 				return -1;
142 141
 			}
143 142
 			to = get_to(msg);
144 143
 			if (parse_uri(to->uri.s, to->uri.len, &puri) == -1) {
145
-				DBG("get_to_uid: Error while parsing To URI\n");
144
+				LM_DBG("Error while parsing To URI\n");
146 145
 				return -1;
147 146
 			}
148 147
 			p = puri.user.s;
149 148
 			uid->len = puri.user.len;
150 149
 		} else {
151 150
 			if (!msg->parsed_uri_ok && (parse_sip_msg_uri(msg) < 0)) {
152
-				DBG("Error while parsing the Request-URI\n");
151
+				LM_DBG("Error while parsing the Request-URI\n");
153 152
 				return -1;
154 153
 			}
155 154
 			p = msg->parsed_uri.user.s;
... ...
@@ -157,11 +156,11 @@ int get_to_uid(str* uid, struct sip_msg* msg)
157 156
 		}
158 157
 			
159 158
 		if (uid->len > MAX_URI_SIZE) {
160
-			DBG("get_to_uid: Username too long\n");
159
+			LM_DBG("Username too long\n");
161 160
 			return -1;
162 161
 		}
163 162
 		if (p == NULL || uid->len == 0) {
164
-			DBG("get_to_uid: Username is empty\n");
163
+			LM_DBG("Username is empty\n");
165 164
 			return -1;
166 165
 		}
167 166
 		memcpy(buf, p, uid->len);