Browse code

uid_gflags: convert to memory logging helper

Henning Westerholt authored on 13/02/2020 21:30:49
Showing 1 changed files
... ...
@@ -271,20 +271,20 @@ static int mod_init(void)
271 271
 {
272 272
 	gflags=(unsigned int *) shm_malloc(sizeof(unsigned int));
273 273
 	if (!gflags) {
274
-		LM_ERR("no shared memory\n");
274
+		SHM_MEM_ERROR;
275 275
 		return -1;
276 276
 	}
277 277
 	*gflags=initial;
278 278
 
279 279
 	avps_1 = shm_malloc(sizeof(*avps_1));
280 280
 	if (!avps_1) {
281
-		LM_ERR("can't allocate memory\n");
281
+		SHM_MEM_ERROR;
282 282
 		return -1;
283 283
 	}
284 284
 	*avps_1 = NULL;
285 285
 	avps_2 = shm_malloc(sizeof(*avps_2));
286 286
 	if (!avps_2) {
287
-		LM_ERR("can't allocate memory\n");
287
+		SHM_MEM_ERROR;
288 288
 		return -1;
289 289
 	}
290 290
 	*avps_2 = NULL;