diff options
| author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-03-28 23:44:32 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-29 13:01:37 -0400 |
| commit | 4462996ea3cc6bcf3c4efbd7bd2514a15dd8ece4 (patch) | |
| tree | 3a41ee6a7a4fca20843baa5842705a85a1dde053 /scripts/checkpatch.pl | |
| parent | d2b2c6dd227ba5b8a802858748ec9a780cb75b47 (diff) | |
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>
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5b756278df13..a09333fd7cef 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -5977,7 +5977,7 @@ sub process { | |||
| 5977 | while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) { | 5977 | while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) { |
| 5978 | $specifier = $1; | 5978 | $specifier = $1; |
| 5979 | $extension = $2; | 5979 | $extension = $2; |
| 5980 | if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOx]/) { | 5980 | if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOxt]/) { |
| 5981 | $bad_specifier = $specifier; | 5981 | $bad_specifier = $specifier; |
| 5982 | last; | 5982 | last; |
| 5983 | } | 5983 | } |
