Browse code

async: Fix some error messages

Olle E. Johansson authored on 20/04/2015 19:11:42
Showing 2 changed files
... ...
@@ -94,7 +94,7 @@ static int mod_init(void)
94 94
 {
95 95
 	if (load_tm_api( &tmb ) == -1)
96 96
 	{
97
-		LM_ERR("cannot load the TM-functions\n");
97
+		LM_ERR("cannot load the TM-functions. Missing TM module?\n");
98 98
 		return -1;
99 99
 	}
100 100
 
... ...
@@ -155,7 +155,7 @@ static int w_async_sleep(struct sip_msg* msg, char* sec, char* str2)
155 155
 
156 156
 	if(async_workers<=0)
157 157
 	{
158
-		LM_ERR("no async mod timer wokers\n");
158
+		LM_ERR("no async mod timer workers (modparam missing?)\n");
159 159
 		return -1;
160 160
 	}
161 161
 
... ...
@@ -192,7 +192,7 @@ static int fixup_async_sleep(void** param, int param_no)
192 192
 	ap = (async_param_t*)pkg_malloc(sizeof(async_param_t));
193 193
 	if(ap==NULL)
194 194
 	{
195
-		LM_ERR("no more pkg\n");
195
+		LM_ERR("no more pkg memory available\n");
196 196
 		return -1;
197 197
 	}
198 198
 	memset(ap, 0, sizeof(async_param_t));
... ...
@@ -219,7 +219,7 @@ static int w_async_route(struct sip_msg* msg, char* rt, char* sec)
219 219
 
220 220
 	if(async_workers<=0)
221 221
 	{
222
-		LM_ERR("no async mod timer wokers\n");
222
+		LM_ERR("no async mod timer workers\n");
223 223
 		return -1;
224 224
 	}
225 225
 
... ...
@@ -141,7 +141,7 @@ int async_sleep(struct sip_msg* msg, int seconds, cfg_action_t *act)
141 141
 	ai = (async_item_t*)shm_malloc(sizeof(async_item_t));
142 142
 	if(ai==NULL)
143 143
 	{
144
-		LM_ERR("no more shm\n");
144
+		LM_ERR("no more shm memory\n");
145 145
 		return -1;
146 146
 	}
147 147
 	memset(ai, 0, sizeof(async_item_t));
... ...
@@ -149,7 +149,7 @@ int async_sleep(struct sip_msg* msg, int seconds, cfg_action_t *act)
149 149
 	ai->act = act;
150 150
 	if(tmb.t_suspend(msg, &ai->tindex, &ai->tlabel)<0)
151 151
 	{
152
-		LM_ERR("failed to suppend the processing\n");
152
+		LM_ERR("failed to suspend the processing\n");
153 153
 		shm_free(ai);
154 154
 		return -1;
155 155
 	}
... ...
@@ -239,13 +239,13 @@ int async_send_task(sip_msg_t* msg, cfg_action_t *act)
239 239
 	at = (async_task_t*)shm_malloc(dsize);
240 240
 	if(at==NULL)
241 241
 	{
242
-		LM_ERR("no more shm\n");
242
+		LM_ERR("no more shm memory\n");
243 243
 		return -1;
244 244
 	}
245 245
 	memset(at, 0, dsize);
246 246
 	if(tmb.t_suspend(msg, &tindex, &tlabel)<0)
247 247
 	{
248
-		LM_ERR("failed to suppend the processing\n");
248
+		LM_ERR("failed to suspend the processing\n");
249 249
 		shm_free(at);
250 250
 		return -1;
251 251
 	}