Navigation


Changeset 974:2091bf698fb1 in freeDiameter for extensions/rt_default


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/rt_default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/rt_default/rtd_conf.l

    r741 r974  
    8282                                if (ret != 1) {
    8383                                        /* No matching: an error occurred */
    84                                         fd_log_debug("Unable to convert the value '%s' to a valid number: %s\n", yytext, strerror(errno));
     84                                        fd_log_debug("Unable to convert the value '%s' to a valid number: %s", yytext, strerror(errno));
    8585                                        return LEX_ERROR; /* trig an error in yacc parser */
    8686                                        /* Maybe we could REJECT instead of failing here? */
     
    107107                                CHECK_MALLOC_DO( yylval->string = strdup(yytext+2),
    108108                                {
    109                                         TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s\n", yytext, strerror(errno));
     109                                        TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s", yytext, strerror(errno));
    110110                                        return LEX_ERROR; /* trig an error in yacc parser */
    111111                                } );
     
    119119                                CHECK_MALLOC_DO( yylval->string = strdup(yytext+1),
    120120                                {
    121                                         TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s\n", yytext, strerror(errno));
     121                                        TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s", yytext, strerror(errno));
    122122                                        return LEX_ERROR; /* trig an error in yacc parser */
    123123                                } );
     
    140140        /* Unrecognized sequence, if it did not match any previous pattern */
    141141[^[:space:]\"*:=+;\n]+  {
    142                                 fd_log_debug("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext);
     142                                fd_log_debug("Unrecognized text on line %d col %d: '%s'.", yylloc->first_line, yylloc->first_column, yytext);
    143143                                return LEX_ERROR;
    144144                        }
  • extensions/rt_default/rtd_conf.y

    r741 r974  
    7171        if (rtd_confin == NULL) {
    7272                ret = errno;
    73                 fd_log_debug("Unable to open extension configuration file %s for reading: %s\n", conffile, strerror(ret));
     73                fd_log_debug("Unable to open extension configuration file %s for reading: %s", conffile, strerror(ret));
    7474                TRACE_DEBUG (INFO, "Error occurred, message logged -- configuration file.");
    7575                return ret;
     
    9999       
    100100        if (ploc->first_line != ploc->last_line)
    101                 fd_log_debug("%s:%d.%d-%d.%d : %s\n", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);
     101                fd_log_debug("%s:%d.%d-%d.%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);
    102102        else if (ploc->first_column != ploc->last_column)
    103                 fd_log_debug("%s:%d.%d-%d : %s\n", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);
     103                fd_log_debug("%s:%d.%d-%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);
    104104        else
    105                 fd_log_debug("%s:%d.%d : %s\n", conffile, ploc->first_line, ploc->first_column, s);
     105                fd_log_debug("%s:%d.%d : %s", conffile, ploc->first_line, ploc->first_column, s);
    106106}
    107107
  • extensions/rt_default/rtd_rules.c

    r741 r974  
    158158static void dump_rule(int indent, struct rule * rule)
    159159{
    160         fd_log_debug("%*s%s%s%s += %d\n",
     160        fd_log_debug("%*s%s%s%s += %d",
    161161                indent, "",
    162162                rule->md.is_regex ? "[" : "'",
     
    168168{
    169169        int i;
    170         fd_log_debug("%*s%s%s%s :\n",
     170        fd_log_debug("%*s%s%s%s :",
    171171                indent, "",
    172172                target->md.is_regex ? "[" : "'",
     
    176176                if (! FD_IS_LIST_EMPTY(&target->rules[i])) {
    177177                        struct fd_list * li;
    178                         fd_log_debug("%*s  rules[%d]:\n",
     178                        fd_log_debug("%*s  rules[%d]:",
    179179                                indent, "", i);
    180180                        for (li = target->rules[i].next; li != &target->rules[i]; li = li->next) {
     
    594594{
    595595        int i;
    596         fd_log_debug("[rt_default] Dumping rules repository...\n");
     596        fd_log_debug("[rt_default] Dumping rules repository...");
    597597        for (i = 0; i < RTD_TAR_MAX; i++) {
    598598                if (!FD_IS_LIST_EMPTY( &TARGETS[i] )) {
    599599                        struct fd_list * li;
    600                         fd_log_debug("  Targets list %d:\n", i);
     600                        fd_log_debug("  Targets list %d:", i);
    601601                        for (li = TARGETS[i].next; li != &TARGETS[i]; li = li->next) {
    602602                                dump_target(4, (struct target *)li);
     
    605605        }
    606606       
    607         fd_log_debug("[rt_default] End of dump\n");
    608 }
     607        fd_log_debug("[rt_default] End of dump");
     608}
Note: See TracChangeset for help on using the changeset viewer.