Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

checkpatch: add %pt as a valid vsprintf extension

Commit 4d42c44727a0 ("lib/vsprintf: Print time and date in human
readable format via %pt") introduced a new extension, %pt.

Add it in the list of valid extensions.

Link: http://lkml.kernel.org/r/20190314203719.29130-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alexandre Belloni and committed by
Linus Torvalds
4462996e d2b2c6dd

+1 -1
+1 -1
scripts/checkpatch.pl
··· 5977 5977 while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) { 5978 5978 $specifier = $1; 5979 5979 $extension = $2; 5980 - if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOx]/) { 5980 + if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOxt]/) { 5981 5981 $bad_specifier = $specifier; 5982 5982 last; 5983 5983 }