From: Jim Jagielski Date: Thu, 21 Jan 2016 15:22:41 +0000 (+0000) Subject: Update... X-Git-Tag: 2.5.0-alpha~2334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af97de3ad62b5ebdf42ec393a745310db4ff5846;p=thirdparty%2Fapache%2Fhttpd.git Update... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725983 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/log-message-tags/README b/docs/log-message-tags/README index 6761733303e..b0f316e6a44 100644 --- a/docs/log-message-tags/README +++ b/docs/log-message-tags/README @@ -45,8 +45,10 @@ can be used. It will add empty APLOGNO() tags where the loglevel is a constant and is of level debug or above. Then, update-log-msg-tags can be used to add numbers to the APLOGNO() tags. The invocation for spatch is: -DIR=docs/log-message-tags -spatch -sp_file $DIR/find-messages.cocci -in_place -macro_file $DIR/macros.h ... + % DIR=docs/log-message-tags + % spatch -sp_file $DIR/find-messages.cocci -in_place -macro_file $DIR/macros.h FILESTOCHECK + +where FILESTOCHECK is the list of C files you want spatch to work on. After the initial addition of tags, calling spatch on the same file again may be a bad idea. But it may still be useful when adding larger pieces of code to @@ -64,3 +66,7 @@ identifier fn =~ "^ap_log_(|r|c|p)error$"; - new lines identifier level =~ "^APLOG_\(EMERG\|ALERT\|CRIT\|ERR\|WARNING\|NOTICE\|INFO\|STARTUP\|DEBUG\)$"; identifier fn =~ "^ap_log_\(\|r\|c\|p\)error$"; + +To finally replace the empty "APLOGNO()," with a real number, run: + + % perl docs/log-message-tags/update-log-msg-tags FILESTOFIX