Browse code

misc_radius: updated to use xavp long value field

Daniel-Constantin Mierla authored on 22/11/2022 09:15:14
Showing 1 changed files
... ...
@@ -127,7 +127,7 @@ static void generate_avps_rad(VALUE_PAIR *received)
127 127
 				if(add_avp(flags, name, val) < 0) {
128 128
 					LM_ERR("unable to create a new AVP\n");
129 129
 				} else {
130
-					LM_DBG("AVP '%.*s'/%d='%.*s'/%d has been added\n",
130
+					LM_DBG("AVP '%.*s'/%ld='%.*s'/%ld has been added\n",
131 131
 							(flags & AVP_NAME_STR) ? name.s.len : 4,
132 132
 							(flags & AVP_NAME_STR) ? name.s.s : "null",
133 133
 							(flags & AVP_NAME_STR) ? 0 : name.n,
... ...
@@ -143,7 +143,7 @@ static void generate_avps_rad(VALUE_PAIR *received)
143 143
 				if(add_avp(flags, name, val) < 0) {
144 144
 					LM_ERR("unable to create a new AVP\n");
145 145
 				} else {
146
-					LM_DBG("AVP '%.*s'/%d='%.*s'/%d has been added\n",
146
+					LM_DBG("AVP '%.*s'/%ld='%.*s'/%ld has been added\n",
147 147
 							(flags & AVP_NAME_STR) ? name.s.len : 4,
148 148
 							(flags & AVP_NAME_STR) ? name.s.s : "null",
149 149
 							(flags & AVP_NAME_STR) ? 0 : name.n,
... ...
@@ -177,7 +177,7 @@ static void generate_avps(struct attr *attrs, VALUE_PAIR *received)
177 177
 		if(add_avp(flags, name, val) < 0) {
178 178
 			LM_ERR("unable to create a new AVP\n");
179 179
 		} else {
180
-			LM_DBG("AVP '%.*s'/%d='%.*s'/%d has been added\n",
180
+			LM_DBG("AVP '%.*s'/%ld='%.*s'/%ld has been added\n",
181 181
 					(flags & AVP_NAME_STR) ? name.s.len : 4,
182 182
 					(flags & AVP_NAME_STR) ? name.s.s : "null",
183 183
 					(flags & AVP_NAME_STR) ? 0 : name.n,