# HG changeset patch # User Sebastien Decugis # Date 1243323343 -32400 # Node ID 0183e656d6abc9815e22267f16a411b39fc4d7b3 # Parent 0d679f66e34a7c7b963aab3288d99bafc1913185 Fix strings in debug extension also diff -r 0d679f66e34a -r 0183e656d6ab extensions/radius_gw/sub_debug.c --- 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... */ }