summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJames Byrne <james.byrne@origamienergy.com>2019-11-21 14:32:46 +0000
committerTom Rini <trini@konsulko.com>2019-11-23 10:28:56 -0500
commit66b3ccc8f7d82afc568e66092aa7630428ad7750 (patch)
tree05294dcd91e5bdc9396c6d1d986c51b385946ab0 /scripts
parentaf7716250454566f1cdb48aa70b7458665693964 (diff)
downloadu-boot-66b3ccc8f7d82afc568e66092aa7630428ad7750.tar.gz
u-boot-66b3ccc8f7d82afc568e66092aa7630428ad7750.tar.bz2
u-boot-66b3ccc8f7d82afc568e66092aa7630428ad7750.zip
tools: checkpatch: Restore 'debug' and 'printf' to logFunctions list
The 'debug' and 'printf' functions were previously added to the list of logFunctions in commit 0cab42110dbf ("checkpatch.pl: Add 'debug' to the list of logFunctions") and commit 397bfd4642c1 ("checkpatch.pl: Add 'printf' to logFunctions") but these additions were lost when newer versions of checkpatch were pulled in from the upstream Linux kernel version. This restores them so that you don't end up in a situation where checkpatch will give a warning for "quoted string split across lines" which you cannot fix without getting a warning for "line over 80 characters" instead. Signed-off-by: James Byrne <james.byrne@origamienergy.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 6fcc66afb0..c2641bc995 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -464,6 +464,8 @@ our $logFunctions = qr{(?x:
TP_printk|
WARN(?:_RATELIMIT|_ONCE|)|
panic|
+ debug|
+ printf|
MODULE_[A-Z_]+|
seq_vprintf|seq_printf|seq_puts
)};