Changeset 974:2091bf698fb1 in freeDiameter for extensions/dict_legacy_xml
- Timestamp:
- Mar 15, 2013, 2:14:35 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/dict_legacy_xml
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dict_legacy_xml/dict_lxml.l
r741 r974 80 80 CHECK_MALLOC_DO( yylval->string = strdup(yytext+1), 81 81 { 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)); 83 83 return LEX_ERROR; /* trig an error in yacc parser */ 84 84 } ); … … 92 92 /* Unrecognized sequence, if it did not match any previous pattern */ 93 93 [^[: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); 95 95 return LEX_ERROR; 96 96 } -
extensions/dict_legacy_xml/dict_lxml.y
r741 r974 72 72 if (dict_lxmlin == NULL) { 73 73 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)); 75 75 TRACE_DEBUG (INFO, "Error occurred, message logged -- configuration file."); 76 76 return ret; … … 100 100 101 101 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); 103 103 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); 105 105 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); 107 107 } 108 108 -
extensions/dict_legacy_xml/dict_lxml_xml.c
r740 r974 123 123 124 124 static 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); 126 126 } 127 127 … … 175 175 if (r->max != -1) 176 176 fd_log_debug("M:%d ", r->max); 177 fd_log_debug("%s \n", (char *)r->avpname);177 fd_log_debug("%s", (char *)r->avpname); 178 178 } 179 179 … … 241 241 static void dump_cmd(struct t_cmd * c) { 242 242 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, 244 244 c->fmask ? ( c->flags ? "[P=1]" : "[P=0]") : "", c->name); 245 245 for (li = c->reqrules_fixed.next; li != &c->reqrules_fixed; li = li->next) … … 325 325 326 326 static 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 ? ")" : ""); 331 331 } 332 332 … … 361 361 362 362 static 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); 364 364 } 365 365 … … 398 398 399 399 static 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); 401 401 } 402 402 … … 469 469 static void dump_avp(struct t_avp * a) { 470 470 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, 472 472 a->fmask & AVP_FLAG_MANDATORY ? ( a->flags & AVP_FLAG_MANDATORY ? "[M=1]" : "[M=0]") : "", 473 473 a->fmask & AVP_FLAG_VENDOR ? ( a->flags & AVP_FLAG_VENDOR ? "[V=1]" : "[V=0]") : "", 474 474 a->name); 475 475 if (a->fmask & AVP_FLAG_VENDOR) 476 fd_log_debug(" vendor: %d \n", a->vendor);476 fd_log_debug(" vendor: %d", a->vendor); 477 477 for (li = a->type.next; li != &a->type; li = li->next) 478 478 dump_avptype((struct t_avptype *)li); … … 561 561 static void dump_appl(struct t_appl * a) { 562 562 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); 564 564 for (li = a->commands.next; li != &a->commands; li = li->next) 565 565 dump_cmd((struct t_cmd *)li); … … 1021 1021 TRACE_DEBUG(INFO, "Error encountered while parsing tag of:"); 1022 1022 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); 1024 1024 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); 1026 1026 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); 1028 1028 } 1029 1029 return;
Note: See TracChangeset
for help on using the changeset viewer.