Navigation


Changeset 974:2091bf698fb1 in freeDiameter for extensions/test_netemul


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.

Location:
extensions/test_netemul
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_netemul/test_netemul.l

    r740 r974  
    7878                                if (ret != 1) {
    7979                                        /* No matching: an error occurred */
    80                                         fd_log_debug("Unable to convert the value '%s' to a valid float: %s\n", yytext, strerror(errno));
     80                                        fd_log_debug("Unable to convert the value '%s' to a valid float: %s", yytext, strerror(errno));
    8181                                        return LEX_ERROR; /* trig an error in yacc parser */
    8282                                        /* Maybe we could REJECT instead of failing here? */
     
    9292                                if (ret != 1) {
    9393                                        /* No matching: an error occurred */
    94                                         fd_log_debug("Unable to convert the value '%s' to a valid long: %s\n", yytext, strerror(errno));
     94                                        fd_log_debug("Unable to convert the value '%s' to a valid long: %s", yytext, strerror(errno));
    9595                                        return LEX_ERROR; /* trig an error in yacc parser */
    9696                                        /* Maybe we could REJECT instead of failing here? */
     
    113113        /* Unrecognized sequence, if it did not match any previous pattern */
    114114[^[:space:][:digit:]=;%/\n]+    {
    115                                 fd_log_debug("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext);
     115                                fd_log_debug("Unrecognized text on line %d col %d: '%s'.", yylloc->first_line, yylloc->first_column, yytext);
    116116                                return LEX_ERROR;
    117117                        }
  • extensions/test_netemul/test_netemul.y

    r740 r974  
    6868        if (test_netemulin == NULL) {
    6969                ret = errno;
    70                 fd_log_debug("Unable to open extension configuration file %s for reading: %s\n", conffile, strerror(ret));
     70                fd_log_debug("Unable to open extension configuration file %s for reading: %s", conffile, strerror(ret));
    7171                TRACE_DEBUG (INFO, "Error occurred, message logged -- configuration file.");
    7272                return ret;
     
    9696       
    9797        if (ploc->first_line != ploc->last_line)
    98                 fd_log_debug("%s:%d.%d-%d.%d : %s\n", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);
     98                fd_log_debug("%s:%d.%d-%d.%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);
    9999        else if (ploc->first_column != ploc->last_column)
    100                 fd_log_debug("%s:%d.%d-%d : %s\n", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);
     100                fd_log_debug("%s:%d.%d-%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);
    101101        else
    102                 fd_log_debug("%s:%d.%d : %s\n", conffile, ploc->first_line, ploc->first_column, s);
     102                fd_log_debug("%s:%d.%d : %s", conffile, ploc->first_line, ploc->first_column, s);
    103103}
    104104
Note: See TracChangeset for help on using the changeset viewer.