From: Paul Belanger Date: Wed, 2 Jun 2010 17:14:37 +0000 (+0000) Subject: Cleanup error/warning messages in AEL2 parser X-Git-Tag: 1.4.34-rc1~2^2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65859759510ca2edb2d4b1c8251add46760beaac;p=thirdparty%2Fasterisk.git Cleanup error/warning messages in AEL2 parser (closes issue #16684) Reported by: Silmaril Patches: patch_ael2_logmsg.diff uploaded by Silmaril (license 979) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@267009 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/ast_expr2.y b/main/ast_expr2.y index caa4314bdb..c09cd0a69a 100644 --- a/main/ast_expr2.y +++ b/main/ast_expr2.y @@ -969,7 +969,7 @@ op_colon (struct val *a, struct val *b) /* 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 @@ op_eqtilde (struct val *a, struct val *b) /* 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("");