]> git.sur5r.net Git - u-boot/commitdiff
checkpatch.pl: Add 'debug' to the list of logFunctions
authorTom Rini <trini@ti.com>
Thu, 14 Mar 2013 05:36:13 +0000 (05:36 +0000)
committerTom Rini <trini@ti.com>
Wed, 27 Mar 2013 19:30:11 +0000 (15:30 -0400)
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 <trini@ti.com>
tools/checkpatch.pl

index 051ba0de376a42f39fdb931c95955ed7e70fcfc8..9f23901872c9b7aa85d5d993016ba7094b016401 100755 (executable)
@@ -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_]+
 )};