changeset 427:5d5401f6d965

Added verbosity in sub_auth
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 24 Jun 2009 15:55:14 +0900
parents 4349b77ad989
children 5e793a4e2450
files extensions/radius_gw/sub_auth.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/radius_gw/sub_auth.c	Wed Jun 24 15:45:32 2009 +0900
+++ b/extensions/radius_gw/sub_auth.c	Wed Jun 24 15:55:14 2009 +0900
@@ -861,6 +861,7 @@
 #define CONV2_STR( _attr_, _data_, _len_, _trunc_)	{					\
 	size_t __l = (size_t)(_len_);								\
 	size_t __off = 0;									\
+	TRACE_DEBUG(FULL, "Converting attribute to "#_attr_);					\
 	if ((_trunc_) == 0) {									\
 		CHECK_PARAMS( __l <= 253 );							\
 	}											\
@@ -878,12 +879,14 @@
 
 #define CONV2_32B( _attr_, _data_)	{							\
 	uint32_t __v = htonl((uint32_t)(_data_));						\
+	TRACE_DEBUG(FULL, "Converting attribute to "#_attr_);					\
 	CHECK_MALLOC(radius_msg_add_attr(*rad_fw, (_attr_), (uint8_t *)&__v, sizeof(__v)));	\
 }
 
 #define CONV2_64B( _attr_, _data_)	{	/* Some systems do not provide htonll */	\
 	uint64_t __v = ((uint64_t)htonl((uint32_t)(((uint64_t)(_data_)) >> 32))) << 32;		\
 		__v  |= htonl((uint32_t)(_data_));						\
+	TRACE_DEBUG(FULL, "Converting attribute to "#_attr_);					\
 	CHECK_MALLOC(radius_msg_add_attr(*rad_fw, (_attr_), (uint8_t *)&__v, sizeof(__v)));	\
 }
 	/* Search the different AVPs we handle here */
"Welcome to our mercurial repository"