* [PATCH] checkpatch: add %pt as a valid vsprintf extension
@ 2019-03-14 20:37 Alexandre Belloni
2019-03-14 20:43 ` Joe Perches
0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Belloni @ 2019-03-14 20:37 UTC (permalink / raw)
To: Andy Whitcroft, Joe Perches; +Cc: linux-kernel, Alexandre Belloni
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.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
scripts/checkpatch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index b737ca9d7204..35851755fbda 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -5949,7 +5949,7 @@ sub process {
while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) {
$specifier = $1;
$extension = $2;
- if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOx]/) {
+ if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOxt]/) {
$bad_specifier = $specifier;
last;
}
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] checkpatch: add %pt as a valid vsprintf extension
2019-03-14 20:37 [PATCH] checkpatch: add %pt as a valid vsprintf extension Alexandre Belloni
@ 2019-03-14 20:43 ` Joe Perches
0 siblings, 0 replies; 2+ messages in thread
From: Joe Perches @ 2019-03-14 20:43 UTC (permalink / raw)
To: Alexandre Belloni, Andy Whitcroft; +Cc: linux-kernel, Andrew Morton
On Thu, 2019-03-14 at 21:37 +0100, Alexandre Belloni wrote:
> 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.
Thanks.
Andrew, can you please pick this up?
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> ---
> scripts/checkpatch.pl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index b737ca9d7204..35851755fbda 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -5949,7 +5949,7 @@ sub process {
> while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) {
> $specifier = $1;
> $extension = $2;
> - if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOx]/) {
> + if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOxt]/) {
> $bad_specifier = $specifier;
> last;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-14 20:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14 20:37 [PATCH] checkpatch: add %pt as a valid vsprintf extension Alexandre Belloni
2019-03-14 20:43 ` Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).