Преглед изворни кода

uid_gflags: convert to memory logging helper

Henning Westerholt пре 5 година
родитељ
комит
fe5027caf3
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/modules/uid_gflags/uid_gflags.c

+ 3 - 3
src/modules/uid_gflags/uid_gflags.c

@@ -271,20 +271,20 @@ static int mod_init(void)
 {
 	gflags=(unsigned int *) shm_malloc(sizeof(unsigned int));
 	if (!gflags) {
-		LM_ERR("no shared memory\n");
+		SHM_MEM_ERROR;
 		return -1;
 	}
 	*gflags=initial;
 
 	avps_1 = shm_malloc(sizeof(*avps_1));
 	if (!avps_1) {
-		LM_ERR("can't allocate memory\n");
+		SHM_MEM_ERROR;
 		return -1;
 	}
 	*avps_1 = NULL;
 	avps_2 = shm_malloc(sizeof(*avps_2));
 	if (!avps_2) {
-		LM_ERR("can't allocate memory\n");
+		SHM_MEM_ERROR;
 		return -1;
 	}
 	*avps_2 = NULL;