Changeset 974:2091bf698fb1 in freeDiameter for extensions/test_acct/test_acct.c
- Timestamp:
- Mar 15, 2013, 2:14:35 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_acct/test_acct.c
r740 r974 73 73 CHECK_FCT( fd_msg_rescode_set( ans, "DIAMETER_SUCCESS", NULL, NULL, 1 ) ); 74 74 75 fd_log_debug("--------------Received the following Accounting message:-------------- \n");75 fd_log_debug("--------------Received the following Accounting message:--------------"); 76 76 77 77 CHECK_FCT( fd_sess_getsid ( sess, &s, &sl ) ); 78 fd_log_debug("Session: %.*s \n", (int)sl, s);78 fd_log_debug("Session: %.*s", (int)sl, s); 79 79 80 80 /* The AVPs that we copy in the answer */ … … 82 82 if (a) { 83 83 CHECK_FCT( fd_msg_avp_hdr( a, &h ) ); 84 fd_log_debug("Accounting-Record-Type: %d (%s) \n", h->avp_value->u32,84 fd_log_debug("Accounting-Record-Type: %d (%s)", h->avp_value->u32, 85 85 /* it would be better to search this in the dictionary, but it is only for debug, so ok */ 86 86 (h->avp_value->u32 == 1) ? "EVENT_RECORD" : … … 97 97 if (a) { 98 98 CHECK_FCT( fd_msg_avp_hdr( a, &h ) ); 99 fd_log_debug("Accounting-Record-Number: %d \n", h->avp_value->u32);99 fd_log_debug("Accounting-Record-Number: %d", h->avp_value->u32); 100 100 CHECK_FCT( fd_msg_avp_new ( tac_dict.Accounting_Record_Number, 0, &a ) ); 101 101 CHECK_FCT( fd_msg_avp_setvalue( a, h->avp_value ) ); … … 105 105 /* We may also dump other data from the message, such as Accounting session Id, number of packets, ... */ 106 106 107 fd_log_debug("---------------------------------------------------------------------- \n");107 fd_log_debug("----------------------------------------------------------------------"); 108 108 109 109 /* Send the answer */
Note: See TracChangeset
for help on using the changeset viewer.