Changeset 974:2091bf698fb1 in freeDiameter for extensions/dict_legacy_xml/dict_lxml_xml.c
- Timestamp:
- Mar 15, 2013, 2:14:35 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.