From: Stefan Fritsch Date: Sun, 4 Dec 2011 21:28:12 +0000 (+0000) Subject: coccinelle 1.0 has changed the syntax for regexps X-Git-Tag: 2.5.0-alpha~7721 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=252dd69c671d70724689ff07a714b4a75d965c1d;p=thirdparty%2Fapache%2Fhttpd.git coccinelle 1.0 has changed the syntax for regexps git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1210226 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/log-message-tags/find-messages.cocci b/docs/log-message-tags/find-messages.cocci index f3e6a9acbe2..f959bbbde41 100644 --- a/docs/log-message-tags/find-messages.cocci +++ b/docs/log-message-tags/find-messages.cocci @@ -1,8 +1,8 @@ @r@ expression rv, s; -constant char [] format; -identifier level ~= "^APLOG_\(EMERG\|ALERT\|CRIT\|ERR\|WARNING\|NOTICE\|INFO\|STARTUP\|DEBUG\)$"; -identifier fn ~= "^ap_log_\(\|r\|c\|p\)error$"; +constant char [] format !~ "APLOGNO"; +identifier level =~ "^APLOG_(EMERG|ALERT|CRIT|ERR|WARNING|NOTICE|INFO|STARTUP|DEBUG)$"; +identifier fn =~ "^ap_log_(|r|c|p)error$"; @@ fn( APLOG_MARK ,