From: Uwe Kleine-König Date: Thu, 14 Nov 2019 10:04:16 +0000 (+0100) Subject: checkpatch: don't warn about new vsprintf pointer extension '%pe' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1d28122131b263f169a7f2d288178a56c69ee076;p=linux.git checkpatch: don't warn about new vsprintf pointer extension '%pe' This extension was introduced in commit 57f5677e535b ("printf: add support for printing symbolic error names"). Link: http://lkml.kernel.org/r/20191114100416.23928-1-u.kleine-koenig@pengutronix.de To: Andy Whitcroft To: Joe Perches To: Andy Shevchenko Cc: linux-kernel@vger.kernel.org Cc: kernel@pengutronix.de Signed-off-by: Uwe Kleine-König Acked-by: Rasmus Villemoes [pmladek@suse.com: Switched the ordering: eE -> Ee] Signed-off-by: Petr Mladek --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 342c7c781ba5a..f6a5a48e92c2d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5995,7 +5995,7 @@ sub process { while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) { $specifier = $1; $extension = $2; - if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOxt]/) { + if ($extension !~ /[SsBKRraEehMmIiUDdgVCbGNOxt]/) { $bad_specifier = $specifier; last; }