This is an automated email from Gerrit.

Paul Fertser (fercer...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/1696

-- gerrit

commit 6543a9827e610fd5779204b4067af3727f419ef9
Author: Paul Fertser <fercer...@gmail.com>
Date:   Mon Oct 14 10:03:00 2013 +0400

    checkpatch: add logging functions
    
    It's commonly considered that user-visible strings should not be split
    to different lines in the sources to ease grepping for them. Hence,
    checkpatch traditionally makes an exception for logging functions,
    lines having them can be of arbitrary length.
    
    OpenOCD uses different (from Linux, the kernel) names, so they need to
    be added to avoid false positives.
    
    Change-Id: I1198c1ffc62b5403d97efa41e665c81a5b6bb3a3
    Signed-off-by: Paul Fertser <fercer...@gmail.com>

diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl
index a9c8e39..eec68b7 100755
--- a/tools/scripts/checkpatch.pl
+++ b/tools/scripts/checkpatch.pl
@@ -261,7 +261,8 @@ our $logFunctions = qr{(?x:
        
[a-z0-9]+_(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)(?:_ratelimited|_once|)|
        WARN(?:_RATELIMIT|_ONCE|)|
        panic|
-       MODULE_[A-Z_]+
+       MODULE_[A-Z_]+|
+       LOG_(?:DEBUG|INFO|WARNING|ERROR|USER|USER_N|OUTPUT)+
 )};
 
 our $signature_tags = qr{(?xi:

-- 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to