Browse code

uid_avp_db: convert to memory logging helper

Henning Westerholt authored on 13/02/2020 21:39:13
Showing 1 changed files
... ...
@@ -147,7 +147,7 @@ int declare_attr_group(modparam_t type, char* _param)
147 147
 	
148 148
 	rt = pkg_malloc(param.len + sizeof(*rt) + 1);
149 149
 	if (!rt) {
150
-		ERR("can't allocate PKG memory\n");
150
+		PKG_MEM_ERROR;
151 151
 		return -1;
152 152
 	}
153 153
 	memset(rt, 0, sizeof(*rt));
... ...
@@ -461,7 +461,7 @@ int init_extra_avp_locks()
461 461
 
462 462
 	locks = shm_malloc(sizeof(gen_lock_t) * LOCK_CNT);
463 463
 	if (!locks) {
464
-		ERR("can't allocate mutexes\n");
464
+		SHM_MEM_ERROR;
465 465
 		return -1;
466 466
 	}
467 467
 	for (i = 0; i < LOCK_CNT; i++) {