[sr-dev] git:master:67901854: ppcfg: add values to log to better tell the problem

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 21 08:19:14 CEST 2022


Module: kamailio
Branch: master
Commit: 6790185478ba96ebb0626846386b28aea15dcce8
URL: https://github.com/kamailio/kamailio/commit/6790185478ba96ebb0626846386b28aea15dcce8

Author: Seven Du <dujinfang at x-y-t.cn>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-06-21T08:19:08+02:00

ppcfg: add values to log to better tell the problem

---

Modified: src/core/ppcfg.c

---

Diff:  https://github.com/kamailio/kamailio/commit/6790185478ba96ebb0626846386b28aea15dcce8.diff
Patch: https://github.com/kamailio/kamailio/commit/6790185478ba96ebb0626846386b28aea15dcce8.patch

---

diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c
index 3d91679df6..5a85a4007c 100644
--- a/src/core/ppcfg.c
+++ b/src/core/ppcfg.c
@@ -54,7 +54,7 @@ int pp_def_qvalue(str *defval, str *outval)
 	str_list_t *sb;
 
 	if(pv_get_buffer_size() < defval->len + 4) {
-		LM_ERR("defined value is too large\n");
+		LM_ERR("defined value is too large %d < %d\n", pv_get_buffer_size(), defval->len + 4);
 		return -1;
 	}
 	newval.s = pv_get_buffer();




More information about the sr-dev mailing list