Changeset 974:2091bf698fb1 in freeDiameter for extensions/test_sip
- Timestamp:
- Mar 15, 2013, 2:14:35 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/test_sip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_sip/test_sip.l
r740 r974 79 79 if (ret != 1) { 80 80 /* No matching: an error occurred */ 81 fd_log_debug("Unable to convert the value '%s' to a valid number: %s \n", yytext, strerror(errno));81 fd_log_debug("Unable to convert the value '%s' to a valid number: %s", yytext, strerror(errno)); 82 82 return LEX_ERROR; /* trig an error in yacc parser */ 83 83 /* Maybe we could REJECT instead of failing here? */ … … 91 91 yylval->string = strdup(yytext+1); 92 92 if (!yylval->string) { 93 fd_log_debug("Unable to copy the string '%s': %s \n", yytext, strerror(errno));93 fd_log_debug("Unable to copy the string '%s': %s", yytext, strerror(errno)); 94 94 TRACE_DEBUG(INFO, "strdup failed"); 95 95 return LEX_ERROR; /* trig an error in yacc parser */ … … 131 131 /* Unrecognized sequence, if it did not match any previous pattern */ 132 132 [^[:space:]"*=>;\n]+ { 133 fd_log_debug("Unrecognized text on line %d col %d: '%s'. \n", yylloc->first_line, yylloc->first_column, yytext);133 fd_log_debug("Unrecognized text on line %d col %d: '%s'.", yylloc->first_line, yylloc->first_column, yytext); 134 134 return LEX_ERROR; 135 135 } -
extensions/test_sip/test_sip.y
r740 r974 70 70 if (test_sipin == NULL) { 71 71 ret = errno; 72 fd_log_debug("Unable to open extension configuration file %s for reading: %s \n", conffile, strerror(ret));72 fd_log_debug("Unable to open extension configuration file %s for reading: %s", conffile, strerror(ret)); 73 73 TRACE_DEBUG (INFO, "Error occurred, message logged -- configuration file."); 74 74 return ret; … … 96 96 97 97 if (ploc->first_line != ploc->last_line) 98 fd_log_debug("%s:%d.%d-%d.%d : %s \n", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);98 fd_log_debug("%s:%d.%d-%d.%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s); 99 99 else if (ploc->first_column != ploc->last_column) 100 fd_log_debug("%s:%d.%d-%d : %s \n", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);100 fd_log_debug("%s:%d.%d-%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s); 101 101 else 102 fd_log_debug("%s:%d.%d : %s \n", conffile, ploc->first_line, ploc->first_column, s);102 fd_log_debug("%s:%d.%d : %s", conffile, ploc->first_line, ploc->first_column, s); 103 103 } 104 104
Note: See TracChangeset
for help on using the changeset viewer.