diff options
author | Joe Perches <joe@perches.com> | 2011-07-25 20:13:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 23:57:16 -0400 |
commit | 6e60c02e9d9427f59842192bdb123cbeaf8bc9a0 (patch) | |
tree | 6cd57dfec304a5cb049173dac6050bb0f13e6876 /scripts | |
parent | 34d99219726ff4d3425b360d1e8d081627a73a00 (diff) |
checkpatch.pl: update $logFunctions
Previous behavior allowed only alphabetic prefixes like pr_info to exceed
the 80 column line length limit.
ath6kl wants to add a digit into the prefix, so allow numbers as well as
digits in the <prefix>_<level> printks.
<prefix>_<level>_ratelimited and <prefix>_<level>_once and WARN_RATELIMIT
and WARN_ONCE may now exceed 80 cols.
Add missing <prefix>_printk type for completeness.
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 8dd720ac0069..9d761c95eca2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -257,9 +257,9 @@ our $typeTypedefs = qr{(?x: | |||
257 | )}; | 257 | )}; |
258 | 258 | ||
259 | our $logFunctions = qr{(?x: | 259 | our $logFunctions = qr{(?x: |
260 | printk| | 260 | printk(?:_ratelimited|_once|)| |
261 | [a-z]+_(emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)| | 261 | [a-z0-9]+_(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)(?:_ratelimited|_once|)| |
262 | WARN| | 262 | WARN(?:_RATELIMIT|_ONCE|)| |
263 | panic| | 263 | panic| |
264 | MODULE_[A-Z_]+ | 264 | MODULE_[A-Z_]+ |
265 | )}; | 265 | )}; |