Skip to contentSkip to conversation

checkpatch.pl: Add 'debug' to the list of logFunctions

PATCH In review Tom Rini 1 participant 2 messages Mar 14, 2013 – Mar 27, 2013

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 checkpatch.pl: Add 'debug' to the list of logFunctions

While the kernel mainly uses pr_debug(...), etc, for debug messages, we use debug(...). Add this to the list of logFunctions so that they are correctly checked (and not warned against) for long string literals.

---
 tools/checkpatch.pl |    1 +
 1 file changed, 1 insertion(+)
tools/checkpatch.pl +1 -0
index 051ba0d..9f23901 100755
@@ -272,6 +272,7 @@ 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|
+	debug|
 	MODULE_[A-Z_]+
 )};
 
Signature · 1 line
1.7.9.5
author
#1 lore raw
Quoted 5 lines · Tom Rini

While the kernel mainly uses pr_debug(...), etc, for debug messages, we use debug(...). Add this to the list of logFunctions so that they are correctly checked (and not warned against) for long string literals.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130327/54c36203/attachment.pgp>