aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2013-10-14 10:03:00 +0400
committerSpencer Oliver <spen@spen-soft.co.uk>2013-10-15 20:40:23 +0000
commitbb3cd6ec438de16295152c64592408685ef9451f (patch)
treef1f51581c935c54ff17a5115a80cf09500b792af /tools
parent1211b8ea481b9185b04563a741ac0c41da274bc9 (diff)
downloadriscv-openocd-bb3cd6ec438de16295152c64592408685ef9451f.zip
riscv-openocd-bb3cd6ec438de16295152c64592408685ef9451f.tar.gz
riscv-openocd-bb3cd6ec438de16295152c64592408685ef9451f.tar.bz2
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 <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1696 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scripts/checkpatch.pl3
1 files changed, 2 insertions, 1 deletions
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: