Skip to content
Snippets Groups Projects
Commit 0cab4211 authored by Tom Rini's avatar Tom Rini
Browse files

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: default avatarTom Rini <trini@ti.com>
parent 268d966d
No related branches found
No related tags found
No related merge requests found
...@@ -272,6 +272,7 @@ our $logFunctions = qr{(?x: ...@@ -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|)| [a-z0-9]+_(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)(?:_ratelimited|_once|)|
WARN(?:_RATELIMIT|_ONCE|)| WARN(?:_RATELIMIT|_ONCE|)|
panic| panic|
debug|
MODULE_[A-Z_]+ MODULE_[A-Z_]+
)}; )};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment