[PATCH 1/6] ARM: at91: Fix signed/unsigned arguments for printf

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 11 02:52:36 EST 2013


On Fri, Nov 08, 2013 at 10:12:52PM +0400, Alexander Shiyan wrote:
> "%d" in format string requires a signed integer.
> 
> Signed-off-by: Alexander Shiyan <shc_work at mail.ru>

Applied, thanks.

I like Cleanups ;)

Sascha

> ---
>  arch/arm/mach-at91/gpio.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-at91/gpio.c b/arch/arm/mach-at91/gpio.c
> index b111373..91de85d 100644
> --- a/arch/arm/mach-at91/gpio.c
> +++ b/arch/arm/mach-at91/gpio.c
> @@ -438,7 +438,7 @@ static void at91mux_dump_pio_config(unsigned bank, unsigned pin)
>  	void __iomem *pio = at91_gpio->regbase;
>  	u32 div;
>  
> -	printf("pio%c%d configuration\n\n", bank + 'A', pin);
> +	printf("pio%c%u configuration\n\n", bank + 'A', pin);
>  
>  	at91mux_printf_mode(bank, pin);
>  	printf("\n");
> @@ -499,7 +499,7 @@ static int do_at91mux(int argc, char *argv[])
>  	}
>  
>  	if (pin >= 32) {
> -		printf("pin %d >= supported %d pins\n", pin, 32);
> +		printf("pin %u >= supported %d pins\n", pin, 32);
>  		return 1;
>  	}
>  
> -- 
> 1.8.1.5
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list