From: Tom Rini Date: Thu, 14 Mar 2013 05:36:13 +0000 (+0000) Subject: checkpatch.pl: Add 'debug' to the list of logFunctions X-Git-Tag: v2013.04-rc2~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0cab42110dbfe7e96172077367af1838d6cc5d0a;p=u-boot 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. Signed-off-by: Tom Rini --- diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl index 051ba0de37..9f23901872 100755 --- a/tools/checkpatch.pl +++ b/tools/checkpatch.pl @@ -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_]+ )};