Mercurial > hg > freeDiameter
comparison extensions/app_radgw/rgw_msg.c @ 518:2c097ed9d0ea
Fix the dump function
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 27 Aug 2010 11:25:46 +0900 |
parents | d5383f28b96e |
children | 4c935aecee6c |
comparison
equal
deleted
inserted
replaced
517:d5383f28b96e | 518:2c097ed9d0ea |
---|---|
96 fd_log_debug(" %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", | 96 fd_log_debug(" %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", |
97 auth[8], auth[9], auth[10], auth[11], | 97 auth[8], auth[9], auth[10], auth[11], |
98 auth[12], auth[13], auth[14], auth[15]); | 98 auth[12], auth[13], auth[14], auth[15]); |
99 for (i = 0; i < msg->radius.attr_used; i++) { | 99 for (i = 0; i < msg->radius.attr_used; i++) { |
100 struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]); | 100 struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]); |
101 fd_log_debug(" - type: 0x%02hhx (%s)\n len: %3hhu,", attr->length, attr->type, rgw_msg_attrtype_str(attr->type)); | 101 fd_log_debug(" - Type: 0x%02hhx (%s)\n Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length); |
102 radius_msg_dump_attr_val(attr); | 102 radius_msg_dump_attr_val(attr); |
103 } | 103 } |
104 fd_log_debug("-----------------------------\n"); | 104 fd_log_debug("-----------------------------\n"); |
105 } | 105 } |
106 | 106 |