httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1725983 - /httpd/httpd/trunk/docs/log-message-tags/README
Date Thu, 21 Jan 2016 15:22:41 GMT
Author: jim
Date: Thu Jan 21 15:22:41 2016
New Revision: 1725983

URL: http://svn.apache.org/viewvc?rev=1725983&view=rev
Log:
Update...

Modified:
    httpd/httpd/trunk/docs/log-message-tags/README

Modified: httpd/httpd/trunk/docs/log-message-tags/README
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/log-message-tags/README?rev=1725983&r1=1725982&r2=1725983&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/log-message-tags/README (original)
+++ httpd/httpd/trunk/docs/log-message-tags/README Thu Jan 21 15:22:41 2016
@@ -45,8 +45,10 @@ can be used.  It will add empty APLOGNO(
 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 <file1>
...
+  % 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



Mime
View raw message