Browse code

proxy.c: logging: convert LOG to LM_*

Ovidiu Sas authored on 04/10/2014 00:40:59
Showing 1 changed files
... ...
@@ -189,7 +189,7 @@ static int hostent_cpy(struct hostent *dst, struct hostent* src)
189 189
 	int ret;
190 190
 	HOSTENT_CPY(dst, src, pkg_malloc, pkg_free);
191 191
 error:
192
-	LOG(L_CRIT, "ERROR: hostent_cpy: memory allocation failure\n");
192
+	LM_CRIT("memory allocation failure\n");
193 193
 	return ret;
194 194
 }
195 195
 
... ...
@@ -199,7 +199,7 @@ static int hostent_shm_cpy(struct hostent *dst, struct hostent* src)
199 199
 	int ret;
200 200
 	HOSTENT_CPY(dst, src, shm_malloc, shm_free);
201 201
 error:
202
-	LOG(L_CRIT, "ERROR: hostent_shm_cpy: memory allocation failure\n");
202
+	LM_CRIT("memory allocation failure\n");
203 203
 	return ret;
204 204
 }
205 205
 
... ...
@@ -241,7 +241,7 @@ error:
241 241
 		p=(struct proxy_l*) p_malloc(sizeof(struct proxy_l));			\
242 242
 		if (p==0){														\
243 243
 			ser_error=E_OUT_OF_MEM;										\
244
-			ERR("ERROR: mk_proxy: memory allocation failure\n");		\
244
+			LM_ERR("memory allocation failure\n");		\
245 245
 			goto error;													\
246 246
 		}																\
247 247
 		memset(p,0,sizeof(struct proxy_l));								\
... ...
@@ -253,7 +253,7 @@ error:
253 253
 		he=sip_resolvehost(name, &(p->port), &proto);					\
254 254
 		if (he==0){														\
255 255
 			ser_error=E_BAD_ADDRESS;									\
256
-			LOG(L_CRIT, "ERROR: mk_proxy: could not resolve hostname:"	\
256
+			LM_CRIT("could not resolve hostname:"	\
257 257
 				" \"%.*s\"\n", name->len, name->s);						\
258 258
 			p_free(p);													\
259 259
 			goto error;													\
... ...
@@ -294,7 +294,7 @@ struct proxy_l* mk_proxy_from_ip(struct ip_addr* ip, unsigned short port,
294 294
 
295 295
 	p=(struct proxy_l*) pkg_malloc(sizeof(struct proxy_l));
296 296
 	if (p==0){
297
-		LOG(L_CRIT, "ERROR: mk_proxy_from_ip: memory allocation failure\n");
297
+		LM_CRIT("memory allocation failure\n");
298 298
 		goto error;
299 299
 	}
300 300
 	memset(p,0,sizeof(struct proxy_l));