[PATCH] checkpatch: don't warn about %pe

Sascha Hauer sha at pengutronix.de
Mon Jul 11 01:24:20 PDT 2022


On Fri, Jul 08, 2022 at 01:00:12PM +0200, Ahmad Fatoum wrote:
> We have been supporting %pe since commit 91084b450226 ("vsprintf:
> add %pe format specifier for printing symbolic error names").
> checkpatch.pl was still warning about this, fix that.
> 
> Reported-by: Johannes Zink <j.zink at pengutronix.de>
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
>  scripts/checkpatch.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 36e3d768f39d..dccc3c3fe79b 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -5981,7 +5981,7 @@ sub process {
>  				while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) {
>  					$specifier = $1;
>  					$extension = $2;
> -					if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOxt]/) {
> +					if ($extension !~ /[SsBKRraEehMmIiUDdgVCbGNOxt]/) {
>  						$bad_specifier = $specifier;
>  						last;
>  					}
> -- 
> 2.30.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list