Navigation


Changeset 974:2091bf698fb1 in freeDiameter for extensions/dict_legacy_xml


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

Legend:

Unmodified
Added
Removed
  • extensions/dict_legacy_xml/dict_lxml.l

    r741 r974  
    8080                                CHECK_MALLOC_DO( yylval->string = strdup(yytext+1),
    8181                                {
    82                                         TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s\n", yytext, strerror(errno));
     82                                        TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s", yytext, strerror(errno));
    8383                                        return LEX_ERROR; /* trig an error in yacc parser */
    8484                                } );
     
    9292        /* Unrecognized sequence, if it did not match any previous pattern */
    9393[^[:space:]\";\n]+      {
    94                                 fd_log_debug("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext);
     94                                fd_log_debug("Unrecognized text on line %d col %d: '%s'.", yylloc->first_line, yylloc->first_column, yytext);
    9595                                return LEX_ERROR;
    9696                        }
  • extensions/dict_legacy_xml/dict_lxml.y

    r741 r974  
    7272        if (dict_lxmlin == NULL) {
    7373                ret = errno;
    74                 fd_log_debug("Unable to open extension configuration file %s for reading: %s\n", conffile, strerror(ret));
     74                fd_log_debug("Unable to open extension configuration file %s for reading: %s", conffile, strerror(ret));
    7575                TRACE_DEBUG (INFO, "Error occurred, message logged -- configuration file.");
    7676                return ret;
     
    100100       
    101101        if (ploc->first_line != ploc->last_line)
    102                 fd_log_debug("%s:%d.%d-%d.%d : %s\n", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);
     102                fd_log_debug("%s:%d.%d-%d.%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);
    103103        else if (ploc->first_column != ploc->last_column)
    104                 fd_log_debug("%s:%d.%d-%d : %s\n", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);
     104                fd_log_debug("%s:%d.%d-%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);
    105105        else
    106                 fd_log_debug("%s:%d.%d : %s\n", conffile, ploc->first_line, ploc->first_column, s);
     106                fd_log_debug("%s:%d.%d : %s", conffile, ploc->first_line, ploc->first_column, s);
    107107}
    108108
  • 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.