[asterisk-commits] pabelanger: branch 1.4 r267009 - /branches/1.4/main/ast_expr2.y

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 2 12:14:40 CDT 2010


Author: pabelanger
Date: Wed Jun  2 12:14:37 2010
New Revision: 267009

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=267009
Log:
Cleanup error/warning messages in AEL2 parser

(closes issue #16684)
Reported by: Silmaril
Patches:
      patch_ael2_logmsg.diff uploaded by Silmaril (license 979)

Modified:
    branches/1.4/main/ast_expr2.y

Modified: branches/1.4/main/ast_expr2.y
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/ast_expr2.y?view=diff&rev=267009&r1=267008&r2=267009
==============================================================================
--- branches/1.4/main/ast_expr2.y (original)
+++ branches/1.4/main/ast_expr2.y Wed Jun  2 12:14:37 2010
@@ -969,7 +969,7 @@
 	/* compile regular expression */
 	if ((eval = regcomp (&rp, b->u.s, REG_EXTENDED)) != 0) {
 		regerror (eval, &rp, errbuf, sizeof(errbuf));
-		ast_log(LOG_WARNING,"regcomp() error : %s",errbuf);
+		ast_log(LOG_WARNING, "regcomp() error : %s\n", errbuf);
 		free_value(a);
 		free_value(b);
 		return make_str("");		
@@ -1020,7 +1020,7 @@
 	/* compile regular expression */
 	if ((eval = regcomp (&rp, b->u.s, REG_EXTENDED)) != 0) {
 		regerror (eval, &rp, errbuf, sizeof(errbuf));
-		ast_log(LOG_WARNING,"regcomp() error : %s",errbuf);
+		ast_log(LOG_WARNING, "regcomp() error : %s\n", errbuf);
 		free_value(a);
 		free_value(b);
 		return make_str("");		




More information about the asterisk-commits mailing list