Skip to content

Commit 4462996

Browse files
alexandrebellonitorvalds
authored andcommitted
checkpatch: add %pt as a valid vsprintf extension
Commit 4d42c44 ("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>
1 parent d2b2c6d commit 4462996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5977,7 +5977,7 @@ sub process {
59775977
while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) {
59785978
$specifier = $1;
59795979
$extension = $2;
5980-
if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOx]/) {
5980+
if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOxt]/) {
59815981
$bad_specifier = $specifier;
59825982
last;
59835983
}

0 commit comments

Comments
 (0)