Navigation


Changeset 974:2091bf698fb1 in freeDiameter for extensions/test_acct/test_acct.c


Ignore:
Timestamp:
Mar 15, 2013, 2:14:35 AM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Remove newlines from fd_log_debug, TRACE_DEBUG, TRACE_ERROR, and TRACE_DEBUG_ERROR
(as far as sed could find them)
with manual fixing afterwards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_acct/test_acct.c

    r740 r974  
    7373                CHECK_FCT( fd_msg_rescode_set( ans, "DIAMETER_SUCCESS", NULL, NULL, 1 ) );
    7474               
    75                 fd_log_debug("--------------Received the following Accounting message:--------------\n");
     75                fd_log_debug("--------------Received the following Accounting message:--------------");
    7676               
    7777                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);
    7979               
    8080                /* The AVPs that we copy in the answer */
     
    8282                if (a) {
    8383                        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,
    8585                                                /* it would be better to search this in the dictionary, but it is only for debug, so ok */
    8686                                                (h->avp_value->u32 == 1) ? "EVENT_RECORD" :
     
    9797                if (a) {
    9898                        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);
    100100                        CHECK_FCT( fd_msg_avp_new ( tac_dict.Accounting_Record_Number, 0, &a ) );
    101101                        CHECK_FCT( fd_msg_avp_setvalue( a, h->avp_value ) );
     
    105105                /* We may also dump other data from the message, such as Accounting session Id, number of packets, ...  */
    106106
    107                 fd_log_debug("----------------------------------------------------------------------\n");
     107                fd_log_debug("----------------------------------------------------------------------");
    108108               
    109109                /* Send the answer */
Note: See TracChangeset for help on using the changeset viewer.