Module: kamailio
Branch: master
Commit: 68dcaf766c5c08ebb9ad08a9203f40dd77b74933
URL:
https://github.com/kamailio/kamailio/commit/68dcaf766c5c08ebb9ad08a9203f40d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-11-22T10:15:14+01:00
misc_radius: updated to use xavp long value field
---
Modified: src/modules/misc_radius/functions.c
---
Diff:
https://github.com/kamailio/kamailio/commit/68dcaf766c5c08ebb9ad08a9203f40d…
Patch:
https://github.com/kamailio/kamailio/commit/68dcaf766c5c08ebb9ad08a9203f40d…
---
diff --git a/src/modules/misc_radius/functions.c b/src/modules/misc_radius/functions.c
index d01e79f6587..bef70b9d826 100644
--- a/src/modules/misc_radius/functions.c
+++ b/src/modules/misc_radius/functions.c
@@ -127,7 +127,7 @@ static void generate_avps_rad(VALUE_PAIR *received)
if(add_avp(flags, name, val) < 0) {
LM_ERR("unable to create a new AVP\n");
} else {
- LM_DBG("AVP '%.*s'/%d='%.*s'/%d has been added\n",
+ LM_DBG("AVP '%.*s'/%ld='%.*s'/%ld has been added\n",
(flags & AVP_NAME_STR) ? name.s.len : 4,
(flags & AVP_NAME_STR) ? name.s.s : "null",
(flags & AVP_NAME_STR) ? 0 : name.n,
@@ -143,7 +143,7 @@ static void generate_avps_rad(VALUE_PAIR *received)
if(add_avp(flags, name, val) < 0) {
LM_ERR("unable to create a new AVP\n");
} else {
- LM_DBG("AVP '%.*s'/%d='%.*s'/%d has been added\n",
+ LM_DBG("AVP '%.*s'/%ld='%.*s'/%ld has been added\n",
(flags & AVP_NAME_STR) ? name.s.len : 4,
(flags & AVP_NAME_STR) ? name.s.s : "null",
(flags & AVP_NAME_STR) ? 0 : name.n,
@@ -177,7 +177,7 @@ static void generate_avps(struct attr *attrs, VALUE_PAIR *received)
if(add_avp(flags, name, val) < 0) {
LM_ERR("unable to create a new AVP\n");
} else {
- LM_DBG("AVP '%.*s'/%d='%.*s'/%d has been added\n",
+ LM_DBG("AVP '%.*s'/%ld='%.*s'/%ld has been added\n",
(flags & AVP_NAME_STR) ? name.s.len : 4,
(flags & AVP_NAME_STR) ? name.s.s : "null",
(flags & AVP_NAME_STR) ? 0 : name.n,