summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-05-03 18:51:05 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-05-06 09:20:29 +0200
commit9e809ef4317cf96a477342a09b8c205a49e44554 (patch)
treeb8191f6fb71f762c98a456a93648459226852e32 /scripts/checkpatch.pl
parent88a012b9e14680149c0c970193e082fb5cf90157 (diff)
downloadbarebox-9e809ef4317cf96a477342a09b8c205a49e44554.tar.gz
barebox-9e809ef4317cf96a477342a09b8c205a49e44554.tar.xz
scripts: allow lines longer than 80 cols with printf() in checkpatch
The checkpatch.pl script is also used to validate user-space code in the scripts/ directory, so it should allow printf() lines to be longer than 80 columns. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 0d94f982fa..e80926fa0b 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -209,7 +209,7 @@ our $typeTypedefs = qr{(?x:
)};
our $logFunctions = qr{(?x:
- printk|
+ printk|printf|
pr_(debug|dbg|vdbg|devel|info|warning|err|notice|alert|crit|emerg|cont)|
(dev|netdev|netif)_(printk|dbg|vdbg|info|warn|err|notice|alert|crit|emerg|WARN)|
WARN|