Mercurial > hg > waaad
changeset 380:0183e656d6ab
Fix strings in debug extension also
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 26 May 2009 16:35:43 +0900 |
parents | 0d679f66e34a |
children | 3591d0486a2c |
files | extensions/radius_gw/sub_debug.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/radius_gw/sub_debug.c Tue May 26 16:31:07 2009 +0900 +++ b/extensions/radius_gw/sub_debug.c Tue May 26 16:35:43 2009 +0900 @@ -95,7 +95,7 @@ auth = &(msg->hdr->authenticator[0]); log_debug(" --- Dump method 1:\n"); - log_debug(" id: %02hhx, code: %hhd (%s)\n", msg->hdr->identifier, msg->hdr->code, rgw_msg_code_str(msg->hdr->code)); + log_debug(" id : 0x%02hhx, code: %hhd (%s)\n", msg->hdr->identifier, msg->hdr->code, rgw_msg_code_str(msg->hdr->code)); log_debug(" auth: %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", auth[0], auth[1], auth[2], auth[3], auth[4], auth[5], auth[6], auth[7]); @@ -104,7 +104,7 @@ auth[12], auth[13], auth[14], auth[15]); for (i = 0; i < msg->attr_used; i++) { struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->buf + msg->attr_pos[i]); - log_debug(" attr: len:%3hhd, type:%02hhx (%s)\n", attr->length, attr->type, rgw_msg_attrtype_str(attr->type)); + log_debug(" - len:%3hhd, type:0x%02hhx (%s)\n", attr->length, attr->type, rgw_msg_attrtype_str(attr->type)); /* If we need to dump the value, it's better to call directly radius_msg_dump instead... */ }