Commit 66b3ccc8f7d82afc568e66092aa7630428ad7750

Authored by James Byrne
Committed by Tom Rini
1 parent af77162504

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

scripts/checkpatch.pl
... ... @@ -464,6 +464,8 @@
464 464 TP_printk|
465 465 WARN(?:_RATELIMIT|_ONCE|)|
466 466 panic|
  467 + debug|
  468 + printf|
467 469 MODULE_[A-Z_]+|
468 470 seq_vprintf|seq_printf|seq_puts
469 471 )};