summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-03-14 05:36:13 +0000
committerTom Rini <trini@ti.com>2013-03-27 15:30:11 -0400
commit0cab42110dbfe7e96172077367af1838d6cc5d0a (patch)
tree296c7ff6ae20be86467a90a098c88a773181730f /tools
parent268d966dff75c6eaf49da21cf5f42b2700f81c50 (diff)
downloadu-boot-imx-0cab42110dbfe7e96172077367af1838d6cc5d0a.zip
u-boot-imx-0cab42110dbfe7e96172077367af1838d6cc5d0a.tar.gz
u-boot-imx-0cab42110dbfe7e96172077367af1838d6cc5d0a.tar.bz2
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 <trini@ti.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkpatch.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl
index 051ba0d..9f23901 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_]+
)};