Browse Source

uid_gflags: convert to memory logging helper

Henning Westerholt 5 years ago
parent
commit
fe5027caf3
1 changed files with 3 additions and 3 deletions
  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;