Navigation


Changeset 974:2091bf698fb1 in freeDiameter for extensions/app_redirect


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

Legend:

Unmodified
Added
Removed
  • extensions/app_redirect/ard_conf.l

    r740 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 TOK_LEX_ERROR; /* trig an error in yacc parser */
    8686                                        /* Maybe we could REJECT instead of failing here? */
     
    9494                                CHECK_MALLOC_DO( yylval->tstring.str = strdup(yytext+2),
    9595                                {
    96                                         TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s\n", yytext, strerror(errno));
     96                                        TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s", yytext, strerror(errno));
    9797                                        return TOK_LEX_ERROR; /* trig an error in yacc parser */
    9898                                } );
     
    107107                                CHECK_MALLOC_DO( yylval->tstring.str = strdup(yytext+1),
    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 TOK_LEX_ERROR; /* trig an error in yacc parser */
    111111                                } );
     
    134134        /* Unrecognized sequence, if it did not match any previous pattern */
    135135[^[:space:]\":=;\n]+    {
    136                                 fd_log_debug("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext);
     136                                fd_log_debug("Unrecognized text on line %d col %d: '%s'.", yylloc->first_line, yylloc->first_column, yytext);
    137137                                return TOK_LEX_ERROR;
    138138                        }
  • extensions/app_redirect/ard_conf.y

    r740 r974  
    7676                return;
    7777               
    78         fd_log_debug("app_redirect: configuration dump:\n");
    79         fd_log_debug("   default_redirect_cache_time : %u sec\n", ard_conf->default_rct);
     78        fd_log_debug("app_redirect: configuration dump:");
     79        fd_log_debug("   default_redirect_cache_time : %u sec", ard_conf->default_rct);
    8080        for (li = ard_conf->rules.next; li != &ard_conf->rules; li = li->next) {
    8181                ard_rule_dump(li->o);
    8282        }
    83         fd_log_debug("app_redirect: end of configuration dump\n");
     83        fd_log_debug("app_redirect: end of configuration dump");
    8484}
    8585
  • extensions/app_redirect/ard_rules.c

    r740 r974  
    5454{
    5555        struct fd_list * li;
    56         fd_log_debug("   rule @%p: %s, %us\n", r, redir_type_str[r->type], r->rct);
     56        fd_log_debug("   rule @%p: %s, %us", r, redir_type_str[r->type], r->rct);
    5757        for (li = r->criteria.next; li != &r->criteria; li = li->next) {
    5858                struct ard_criteria * c = li->o;
    59                 fd_log_debug("      Criteria: ");
    6059                switch (c->type) {
    6160                        case FROM_ID:
    62                                 fd_log_debug("received from peer %s'%s'", c->is_regex?"REGEX":"", c->s);
     61                                fd_log_debug("      Criteria: received from peer %s'%s'", c->is_regex?"REGEX":"", c->s);
    6362                                break;
    6463                        case FROM_REALM:
    65                                 fd_log_debug("received from realm %s'%s'", c->is_regex?"REGEX":"", c->s);
     64                                fd_log_debug("      Criteria: received from realm %s'%s'", c->is_regex?"REGEX":"", c->s);
    6665                                break;
    6766                        case APP_ID:
    68                                 fd_log_debug("application id is %u", c->i);
     67                                fd_log_debug("      Criteria: application id is %u", c->i);
    6968                                break;
    7069                        case AVP_INT:
    71                                 fd_log_debug("contains '%s' AVP with value '%d'", c->avp_info.avp_name, c->i);
     70                                fd_log_debug("      Criteria: contains '%s' AVP with value '%d'", c->avp_info.avp_name, c->i);
    7271                                break;
    7372                        case AVP_STR:
    74                                 fd_log_debug("contains '%s' AVP with value %s'%s'", c->avp_info.avp_name, c->is_regex?"REGEX":"", c->s);
     73                                fd_log_debug("      Criteria: contains '%s' AVP with value %s'%s'", c->avp_info.avp_name, c->is_regex?"REGEX":"", c->s);
    7574                                break;
    7675               
    7776                        default:
    78                                 fd_log_debug("invalid (%d)!", c->type);
    79                 }
    80                 fd_log_debug("\n");
     77                                fd_log_debug("      Criteria: invalid (%d)!", c->type);
     78                }
    8179        }
    8280        for (li = r->targets.next; li != &r->targets; li = li->next) {
    8381                struct ard_target * t = li->o;
    84                 fd_log_debug("      Redirect to: '%s'\n", t->s);
     82                fd_log_debug("      Redirect to: '%s'", t->s);
    8583        }
    8684}
Note: See TracChangeset for help on using the changeset viewer.