Skip to contentSkip to conversation

checkpatch: add TP_printk to list of logging functions

PATCH New [email protected] 1 participant 1 message Nov 17, 2017 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 44/94 checkpatch: add TP_printk to list of logging functions

From: Joe Perches <[email protected]>
Subject: checkpatch: add TP_printk to list of logging functions

So the line length check can be bypassed by its callers.

---

 scripts/checkpatch.pl |    1 +
 1 file changed, 1 insertion(+)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-add-tp_printk-to-list-of-logging-functions +1 -0
diff -puN scripts/checkpatch.pl~checkpatch-add-tp_printk-to-list-of-logging-functions scripts/checkpatch.pl
@@ -454,6 +454,7 @@ our $zero_initializer = qr{(?:(?:0[xX])?
 our $logFunctions = qr{(?x:
 	printk(?:_ratelimited|_once|_deferred_once|_deferred|)|
 	(?:[a-z0-9]+_){1,2}(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)(?:_ratelimited|_once|)|
+	TP_printk|
 	WARN(?:_RATELIMIT|_ONCE|)|
 	panic|
 	MODULE_[A-Z_]+|

_