Navigation



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/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.