Changes in libfdcore/fdd.l [968:652713ce3596:969:6808de455810] in freeDiameter
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/fdd.l
r968 r969 84 84 int globerrfct(const char *epath, int eerrno) 85 85 { 86 TRACE_ DEBUG_ERROR("Failed to scan %s: %s\n", epath, strerror(eerrno));86 TRACE_ERROR("Failed to scan %s: %s\n", epath, strerror(eerrno)); 87 87 return 1; 88 88 } … … 119 119 if (buf[yyleng-2] != '"') 120 120 { 121 TRACE_ DEBUG_ERROR("Unterminated string: %s\n", yytext);121 TRACE_ERROR("Unterminated string: %s\n", yytext); 122 122 return LEX_ERROR; 123 123 } … … 126 126 if (current_nested_level >= MAX_NESTED_CONF_FILES) 127 127 { 128 TRACE_ DEBUG_ERROR("Too many recursion levels in configuration files includes\n");128 TRACE_ERROR("Too many recursion levels in configuration files includes\n"); 129 129 return LEX_ERROR; 130 130 } … … 135 135 if (globerror == GLOB_NOSPACE) 136 136 { 137 TRACE_ DEBUG_ERROR("Not enough memory to parse include directive.\n");137 TRACE_ERROR("Not enough memory to parse include directive.\n"); 138 138 return LEX_ERROR; 139 139 } 140 140 if (globerror == GLOB_ABORTED) 141 141 { 142 TRACE_ DEBUG_ERROR("An error was encountered in include directive.\n");142 TRACE_ERROR("An error was encountered in include directive.\n"); 143 143 return LEX_ERROR; 144 144 } … … 150 150 if (globerror) 151 151 { 152 TRACE_ DEBUG_ERROR("Unexpected error in glob (%d).\n", globerror);152 TRACE_ERROR("Unexpected error in glob (%d).\n", globerror); 153 153 return LEX_ERROR; 154 154 } … … 166 166 if ( ! yyin ) 167 167 { 168 TRACE_ DEBUG_ERROR("Error in %s: %s", nested_conffiles[current_nested_level].filelist.gl_pathv[0], strerror(errno));168 TRACE_ERROR("Error in %s: %s", nested_conffiles[current_nested_level].filelist.gl_pathv[0], strerror(errno)); 169 169 return LEX_ERROR; 170 170 } … … 206 206 if ( ! yyin ) 207 207 { 208 TRACE_ DEBUG_ERROR("Error in %s: %s", nested_conffiles[current_nested_level].filelist.gl_pathv[nested_conffiles[current_nested_level].current_file], strerror(errno));208 TRACE_ERROR("Error in %s: %s", nested_conffiles[current_nested_level].filelist.gl_pathv[nested_conffiles[current_nested_level].current_file], strerror(errno)); 209 209 return LEX_ERROR; 210 210 } … … 234 234 if (ret != 1) { 235 235 /* No matching: an error occurred */ 236 TRACE_ DEBUG_ERROR("Unable to convert the value '%s' to a valid number: %s\n", yytext, strerror(errno));236 TRACE_ERROR("Unable to convert the value '%s' to a valid number: %s\n", yytext, strerror(errno)); 237 237 return LEX_ERROR; /* trig an error in yacc parser */ 238 238 /* Maybe we could REJECT instead of failing here? */ … … 277 277 /* Unrecognized character */ 278 278 <*>. { 279 TRACE_ DEBUG_ERROR("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext);279 TRACE_ERROR("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext); 280 280 return LEX_ERROR; 281 281 }
Note: See TracChangeset
for help on using the changeset viewer.