Changeset 974:2091bf698fb1 in freeDiameter for extensions/rt_default
- Timestamp:
- Mar 15, 2013, 2:14:35 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/rt_default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rt_default/rtd_conf.l
r741 r974 82 82 if (ret != 1) { 83 83 /* No matching: an error occurred */ 84 fd_log_debug("Unable to convert the value '%s' to a valid number: %s \n", yytext, strerror(errno));84 fd_log_debug("Unable to convert the value '%s' to a valid number: %s", yytext, strerror(errno)); 85 85 return LEX_ERROR; /* trig an error in yacc parser */ 86 86 /* Maybe we could REJECT instead of failing here? */ … … 107 107 CHECK_MALLOC_DO( yylval->string = strdup(yytext+2), 108 108 { 109 TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s \n", yytext, strerror(errno));109 TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s", yytext, strerror(errno)); 110 110 return LEX_ERROR; /* trig an error in yacc parser */ 111 111 } ); … … 119 119 CHECK_MALLOC_DO( yylval->string = strdup(yytext+1), 120 120 { 121 TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s \n", yytext, strerror(errno));121 TRACE_DEBUG(INFO, "Unable to copy the string '%s': %s", yytext, strerror(errno)); 122 122 return LEX_ERROR; /* trig an error in yacc parser */ 123 123 } ); … … 140 140 /* Unrecognized sequence, if it did not match any previous pattern */ 141 141 [^[:space:]\"*:=+;\n]+ { 142 fd_log_debug("Unrecognized text on line %d col %d: '%s'. \n", yylloc->first_line, yylloc->first_column, yytext);142 fd_log_debug("Unrecognized text on line %d col %d: '%s'.", yylloc->first_line, yylloc->first_column, yytext); 143 143 return LEX_ERROR; 144 144 } -
extensions/rt_default/rtd_conf.y
r741 r974 71 71 if (rtd_confin == NULL) { 72 72 ret = errno; 73 fd_log_debug("Unable to open extension configuration file %s for reading: %s \n", conffile, strerror(ret));73 fd_log_debug("Unable to open extension configuration file %s for reading: %s", conffile, strerror(ret)); 74 74 TRACE_DEBUG (INFO, "Error occurred, message logged -- configuration file."); 75 75 return ret; … … 99 99 100 100 if (ploc->first_line != ploc->last_line) 101 fd_log_debug("%s:%d.%d-%d.%d : %s \n", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);101 fd_log_debug("%s:%d.%d-%d.%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s); 102 102 else if (ploc->first_column != ploc->last_column) 103 fd_log_debug("%s:%d.%d-%d : %s \n", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);103 fd_log_debug("%s:%d.%d-%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s); 104 104 else 105 fd_log_debug("%s:%d.%d : %s \n", conffile, ploc->first_line, ploc->first_column, s);105 fd_log_debug("%s:%d.%d : %s", conffile, ploc->first_line, ploc->first_column, s); 106 106 } 107 107 -
extensions/rt_default/rtd_rules.c
r741 r974 158 158 static void dump_rule(int indent, struct rule * rule) 159 159 { 160 fd_log_debug("%*s%s%s%s += %d \n",160 fd_log_debug("%*s%s%s%s += %d", 161 161 indent, "", 162 162 rule->md.is_regex ? "[" : "'", … … 168 168 { 169 169 int i; 170 fd_log_debug("%*s%s%s%s : \n",170 fd_log_debug("%*s%s%s%s :", 171 171 indent, "", 172 172 target->md.is_regex ? "[" : "'", … … 176 176 if (! FD_IS_LIST_EMPTY(&target->rules[i])) { 177 177 struct fd_list * li; 178 fd_log_debug("%*s rules[%d]: \n",178 fd_log_debug("%*s rules[%d]:", 179 179 indent, "", i); 180 180 for (li = target->rules[i].next; li != &target->rules[i]; li = li->next) { … … 594 594 { 595 595 int i; 596 fd_log_debug("[rt_default] Dumping rules repository... \n");596 fd_log_debug("[rt_default] Dumping rules repository..."); 597 597 for (i = 0; i < RTD_TAR_MAX; i++) { 598 598 if (!FD_IS_LIST_EMPTY( &TARGETS[i] )) { 599 599 struct fd_list * li; 600 fd_log_debug(" Targets list %d: \n", i);600 fd_log_debug(" Targets list %d:", i); 601 601 for (li = TARGETS[i].next; li != &TARGETS[i]; li = li->next) { 602 602 dump_target(4, (struct target *)li); … … 605 605 } 606 606 607 fd_log_debug("[rt_default] End of dump \n");608 } 607 fd_log_debug("[rt_default] End of dump"); 608 }
Note: See TracChangeset
for help on using the changeset viewer.