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/dict_legacy_xml/dict_lxml_xml.c

    r740 r974  
    123123
    124124static void dump_vendor(struct t_vend * v) {
    125         fd_log_debug(" Vendor %d:'%s'\n", v->id, (char *)v->name);
     125        fd_log_debug(" Vendor %d:'%s'", v->id, (char *)v->name);
    126126}
    127127
     
    175175        if (r->max != -1)
    176176                fd_log_debug("M:%d ", r->max);
    177         fd_log_debug("%s\n", (char *)r->avpname);
     177        fd_log_debug("%s", (char *)r->avpname);
    178178}
    179179
     
    241241static void dump_cmd(struct t_cmd * c) {
    242242        struct fd_list * li;
    243         fd_log_debug("  Command %d %s: %s\n", c->code,
     243        fd_log_debug("  Command %d %s: %s", c->code,
    244244                c->fmask ? ( c->flags ? "[P=1]" : "[P=0]") : "", c->name);
    245245        for (li = c->reqrules_fixed.next; li != &c->reqrules_fixed; li = li->next)
     
    325325
    326326static void dump_type(struct t_typedefn * t) {
    327         fd_log_debug("  Type %s", (char *)t->name);
    328         if (t->parent_name)
    329                 fd_log_debug("(parent: %s)", (char *)t->parent_name);
    330         fd_log_debug("\n");
     327        fd_log_debug("  Type %s%s%s%s", (char *)t->name,
     328                     t->parent_name ? "(parent: " : "",
     329                     t->parent_name ? (char *)t->parent_name : "",
     330                     t->parent_name ? ")" : "");
    331331}
    332332
     
    361361
    362362static void dump_avptype(struct t_avptype * t) {
    363         fd_log_debug("    data type: %s\n", t->type_name);
     363        fd_log_debug("    data type: %s", t->type_name);
    364364}
    365365
     
    398398
    399399static void dump_enum(struct t_enum * e) {
    400         fd_log_debug("    Value: %d == %s\n", e->code, e->name);
     400        fd_log_debug("    Value: %d == %s", e->code, e->name);
    401401}       
    402402
     
    469469static void dump_avp(struct t_avp * a) {
    470470        struct fd_list * li;
    471         fd_log_debug("  AVP %d %s%s: %s\n", a->code,
     471        fd_log_debug("  AVP %d %s%s: %s", a->code,
    472472                a->fmask & AVP_FLAG_MANDATORY ? ( a->flags & AVP_FLAG_MANDATORY ? "[M=1]" : "[M=0]") : "",
    473473                a->fmask & AVP_FLAG_VENDOR ? ( a->flags & AVP_FLAG_VENDOR ? "[V=1]" : "[V=0]") : "",
    474474                a->name);
    475475        if (a->fmask & AVP_FLAG_VENDOR)
    476                 fd_log_debug("    vendor: %d\n", a->vendor);
     476                fd_log_debug("    vendor: %d", a->vendor);
    477477        for (li = a->type.next; li != &a->type; li = li->next)
    478478                dump_avptype((struct t_avptype *)li);
     
    561561static void dump_appl(struct t_appl * a) {
    562562        struct fd_list * li;
    563         fd_log_debug(" Application %d: %s\n", a->id, a->name);
     563        fd_log_debug(" Application %d: %s", a->id, a->name);
    564564        for (li = a->commands.next; li != &a->commands; li = li->next)
    565565                dump_cmd((struct t_cmd *)li);
     
    10211021                TRACE_DEBUG(INFO, "Error encountered while parsing tag of:");
    10221022                if (data->cur_app)
    1023                         fd_log_debug("  Application: '%s'\n", data->cur_app->name);
     1023                        fd_log_debug("  Application: '%s'", data->cur_app->name);
    10241024                if (data->cur_cmd)
    1025                         fd_log_debug("  Command    : '%s'\n", data->cur_cmd->name);
     1025                        fd_log_debug("  Command    : '%s'", data->cur_cmd->name);
    10261026                if (data->cur_avp)
    1027                         fd_log_debug("  AVP        : '%s'\n", data->cur_avp->name);
     1027                        fd_log_debug("  AVP        : '%s'", data->cur_avp->name);
    10281028        }
    10291029        return;
Note: See TracChangeset for help on using the changeset viewer.