[sr-dev] git:master:118b2214: uid_avp_db: convert to memory logging helper

Henning Westerholt hw at skalatan.de
Thu Feb 13 23:09:51 CET 2020


Module: kamailio
Branch: master
Commit: 118b22145dc0605db7e04f336588cc6d240dcdf1
URL: https://github.com/kamailio/kamailio/commit/118b22145dc0605db7e04f336588cc6d240dcdf1

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-02-13T23:08:35+01:00

uid_avp_db: convert to memory logging helper

---

Modified: src/modules/uid_avp_db/extra_attrs.c

---

Diff:  https://github.com/kamailio/kamailio/commit/118b22145dc0605db7e04f336588cc6d240dcdf1.diff
Patch: https://github.com/kamailio/kamailio/commit/118b22145dc0605db7e04f336588cc6d240dcdf1.patch

---

diff --git a/src/modules/uid_avp_db/extra_attrs.c b/src/modules/uid_avp_db/extra_attrs.c
index 6a88655c70..fd7a2db174 100644
--- a/src/modules/uid_avp_db/extra_attrs.c
+++ b/src/modules/uid_avp_db/extra_attrs.c
@@ -147,7 +147,7 @@ int declare_attr_group(modparam_t type, char* _param)
 	
 	rt = pkg_malloc(param.len + sizeof(*rt) + 1);
 	if (!rt) {
-		ERR("can't allocate PKG memory\n");
+		PKG_MEM_ERROR;
 		return -1;
 	}
 	memset(rt, 0, sizeof(*rt));
@@ -461,7 +461,7 @@ int init_extra_avp_locks()
 
 	locks = shm_malloc(sizeof(gen_lock_t) * LOCK_CNT);
 	if (!locks) {
-		ERR("can't allocate mutexes\n");
+		SHM_MEM_ERROR;
 		return -1;
 	}
 	for (i = 0; i < LOCK_CNT; i++) {




More information about the sr-dev mailing list