changeset 74:d21f686a9ef6

Bug fix
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 11 Jul 2008 11:53:20 +0900
parents 8941902e043b
children d3deb0097ab8
files waaad/message.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/waaad/message.c	Fri Jul 11 11:52:58 2008 +0900
+++ b/waaad/message.c	Fri Jul 11 11:53:20 2008 +0900
@@ -421,7 +421,7 @@
 			break;
 
 		case AVP_TYPE_INTEGER64:
-			DUMP_VALUE("%li",value->i64);
+			DUMP_VALUE("%lli (0x%llx)",value->i64,value->i64);
 			break;
 
 		case AVP_TYPE_UNSIGNED32:
@@ -429,7 +429,7 @@
 			break;
 
 		case AVP_TYPE_UNSIGNED64:
-			DUMP_VALUE("%lu",value->u64);
+			DUMP_VALUE("%llu",value->u64);
 			break;
 
 		case AVP_TYPE_FLOAT32:
@@ -437,7 +437,7 @@
 			break;
 
 		case AVP_TYPE_FLOAT64:
-			DUMP_VALUE("%g",value->f64);
+			DUMP_VALUE("%Lg",value->f64);
 			break;
 		
 		default:
@@ -541,7 +541,7 @@
 				dump_basic_type(avp->avp_public.avp_data, type, type_base_name[type], indent);
 				goto end;
 			}
-			ret = dict_getval(avp->avp_model, &type_data);
+			ret = dict_getval(avp_type, &type_data);
 			if (ret != 0) {
 				dump_basic_type(avp->avp_public.avp_data, type, "(error getting type data)", indent);
 				goto end;
"Welcome to our mercurial repository"