[PATCH 1/6] ARM: at91: Fix signed/unsigned arguments for printf
Alexander Shiyan
shc_work at mail.ru
Fri Nov 8 13:12:52 EST 2013
"%d" in format string requires a signed integer.
Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
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
More information about the barebox
mailing list