Browse code

sip_msg_clone.c: logging: convert LOG to LM_*

Ovidiu Sas authored on 03/10/2014 21:24:17
Showing 1 changed files
... ...
@@ -335,7 +335,7 @@ static inline int clone_authorized_hooks(struct sip_msg* new,
335 335
 	while(ptr) {
336 336
 		if (ptr == hook1) {
337 337
 			if (!new->authorization || !new->authorization->parsed) {
338
-				LOG(L_CRIT, "BUG: Error in message cloner (authorization)\n");
338
+				LM_CRIT("Error in message cloner (authorization)\n");
339 339
 				return -1;
340 340
 			}
341 341
 			((struct auth_body*)new->authorization->parsed)->authorized =
... ...
@@ -345,7 +345,7 @@ static inline int clone_authorized_hooks(struct sip_msg* new,
345 345
 
346 346
 		if (ptr == hook2) {
347 347
 			if (!new->proxy_auth || !new->proxy_auth->parsed) {
348
-				LOG(L_CRIT, "BUG: Error in message cloner (proxy_auth)\n");
348
+				LM_CRIT("Error in message cloner (proxy_auth)\n");
349 349
 				return -1;
350 350
 			}
351 351
 			((struct auth_body*)new->proxy_auth->parsed)->authorized =
... ...
@@ -504,7 +504,7 @@ struct sip_msg*  sip_msg_shm_clone( struct sip_msg *org_msg, int *sip_msg_len,
504 504
 	p=(char *)shm_malloc(len);
505 505
 	if (!p)
506 506
 	{
507
-		LOG(L_ERR , "ERROR: sip_msg_cloner: cannot allocate memory\n" );
507
+		LM_ERR("cannot allocate memory\n" );
508 508
 		return 0;
509 509
 	}
510 510
 	if (sip_msg_len)
... ...
@@ -987,7 +987,7 @@ int msg_lump_cloner(struct sip_msg *pkg_msg,
987 987
 	p=(char *)shm_malloc(len);
988 988
 	if (!p)
989 989
 	{
990
-		LOG(L_ERR, "ERROR: msg_lump_cloner: cannot allocate memory\n" );
990
+		LM_ERR("cannot allocate memory\n" );
991 991
 		return -1;
992 992
 	}
993 993