Browse code

data_lump_rpl.c: logging: convert LOG to LM_*

Ovidiu Sas authored on 03/10/2014 21:50:53
Showing 1 changed files
... ...
@@ -60,11 +60,11 @@ struct lump_rpl** add_lump_rpl2(struct sip_msg *msg, char *s,
60 60
 	/* some checking */
61 61
 	if ( (flags&(LUMP_RPL_HDR|LUMP_RPL_BODY))==(LUMP_RPL_HDR|LUMP_RPL_BODY)
62 62
 	|| (flags&(LUMP_RPL_HDR|LUMP_RPL_BODY))==0 || (flags&LUMP_RPL_SHMEM) ) {
63
-		LOG(L_ERR,"ERROR:add_lump_rpl: bad flags combination (%d)!\n",flags);
63
+		LM_ERR("bad flags combination (%d)!\n",flags);
64 64
 		goto error;
65 65
 	}
66 66
 	if (len<=0 || s==0) {
67
-		LOG(L_ERR,"ERROR:add_lump_rpl: I won't add an empty lump!\n");
67
+		LM_ERR("I won't add an empty lump!\n");
68 68
 		goto error;
69 69
 	}
70 70
 
... ...
@@ -72,7 +72,7 @@ struct lump_rpl** add_lump_rpl2(struct sip_msg *msg, char *s,
72 72
 	lump = (struct lump_rpl*) pkg_malloc
73 73
 		( sizeof(struct lump_rpl) + ((flags&LUMP_RPL_NODUP)?0:len) );
74 74
 	if (!lump) {
75
-		LOG(L_ERR,"ERROR:add_lump_rpl : no free pkg memory !\n");
75
+		LM_ERR("no free pkg memory !\n");
76 76
 		goto error;
77 77
 	}
78 78
 
... ...
@@ -96,8 +96,7 @@ struct lump_rpl** add_lump_rpl2(struct sip_msg *msg, char *s,
96 96
 		else
97 97
 			for(foo=msg->reply_lump; ;foo=foo->next) {
98 98
 				if (foo->flags&LUMP_RPL_BODY) {
99
-					LOG(L_ERR,"ERROR:add_lump_rpl: LUMP_RPL_BODY "
100
-						"already added!\n");
99
+					LM_ERR("LUMP_RPL_BODY already added!\n");
101 100
 					pkg_free(lump);
102 101
 					goto error;
103 102
 				}