ARM: at91: Fix signed/unsigned arguments for printf
Subsystems (5)
PATCH 1/6 ARM: at91: Fix signed/unsigned arguments for printf
"%d" in format string requires a signed integer.
--- arch/arm/mach-at91/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-at91/gpio.c +2 -2
@@ -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 ; }
Signature · 7 lines
1.8.1.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/1 net/Kconfig: Remove non-existent ARCH_DAVINCI
--- drivers/net/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/Kconfig +1 -1
@@ -62,7 +62,7 @@ config DRIVER_NET_SMC91111 config DRIVER_NET_DAVINCI_EMAC bool "TI Davinci/OMAP EMAC ethernet driver" - depends on ARCH_DAVINCI || ARCH_OMAP3 + depends on ARCH_OMAP3 select PHYLIB config DRIVER_NET_DM9K
Signature · 7 lines
1.8.1.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/6 ARM: mxs: Fix signed/unsigned arguments for printf
In reply to Alexander Shiyan"%d" in format string requires a signed integer. "%u" in format string requires a unsigned integer.
--- arch/arm/mach-mxs/bcb.c | 8 ++++---- arch/arm/mach-mxs/iomux-imx.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/mach-mxs/bcb.c +4 -4
@@ -179,7 +179,7 @@ static int calc_bb_offset(struct mtd_info *mtd, struct mx28_fcb *fcb) bb_mark_chunk = bb_mark_offset / chunk_total_size; bb_mark_chunk_offs = bb_mark_offset - (bb_mark_chunk * chunk_total_size);if (bb_mark_chunk_offs > chunk_data_size) { -printf ("Unsupported ECC layout; BB mark resides in ECC data: %u\n" , +printf ("Unsupported ECC layout; BB mark resides in ECC data: %i\n" , bb_mark_chunk_offs);return -EINVAL ; }
@@ -267,12 +267,12 @@ static int find_fcb(struct mtd_info *mtd, void *ref, int page) chip->cmdfunc (mtd,NAND_CMD_READ0 ,0x00 , page); ret = chip->ecc.read_page_raw (mtd, chip, buf,1 , page);if (ret) { -printf ("Failed to read FCB from page %u: %d\n" , page, ret); +printf ("Failed to read FCB from page %i: %d\n" , page, ret);return ret; } chip->select_chip (mtd,-1 );if (memcmp (buf, ref, mtd->writesize) ==0 ) { -printf ("%s: Found FCB in page %u (%08x)\n" , __func__, +printf ("%s: Found FCB in page %i (%08x)\n" , __func__, page, page * mtd->writesize); ret =1 ; }
@@ -376,7 +376,7 @@ int update_bcb(int argc, char *argv[]) ret =write_fcb (mtd, buf, block);if (ret) { -printf ("Failed to write FCB to block %u\n" , block); +printf ("Failed to write FCB to block %i\n" , block);return ret; }
arch/arm/mach-mxs/iomux-imx.c +1 -1
@@ -99,7 +99,7 @@ void imx_gpio_mode(uint32_t m)/* some pins are disabled when configured for GPIO */ if ((gpio_pin >MAX_GPIO_NO ) && (GET_FUNC (m) ==IS_GPIO )) { -printf ("Cannot configure pad %d to GPIO\n" , gpio_pin); +printf ("Cannot configure pad %u to GPIO\n" , gpio_pin);return ; }
Signature · 7 lines
1.8.1.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/6 commands: nandtest: Fix signed/unsigned arguments for printf
In reply to Alexander Shiyan"%d" in format string requires a signed integer.
--- commands/nandtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
commands/nandtest.c +2 -2
@@ -163,8 +163,8 @@ static void print_stats(int nr_passes, int length)for (i =0 ; i <MAX_ECC_BITS ; i++)printf ("ECC %d bit error(s) : %d\n" , i +1 , ecc_stats[i]); -printf ("ECC >%d bit error(s) : %d\n" ,MAX_ECC_BITS , ecc_stats_over); -printf ("ECC corrections failed : %d\n" , ecc_failed_cnt); +printf ("ECC >%d bit error(s) : %u\n" ,MAX_ECC_BITS , ecc_stats_over); +printf ("ECC corrections failed : %u\n" , ecc_failed_cnt);printf ("-------------------------\n" ); }
Signature · 7 lines
1.8.1.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/6 net: netx: Fix signed/unsigned arguments for printf
In reply to Alexander Shiyan"%d" in format string requires a signed integer.
--- drivers/net/netx_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/netx_eth.c +1 -1
@@ -86,7 +86,7 @@ static int netx_eth_send (struct eth_device *edev,#endif val =PFIFO_REG (PFIFO_BASE (CON_FIFO_PORT_LO (xcno)) );if ((val &FIFO_PTR_ERROR_MASK ) &0x8 ) -printf ("error sending frame: %d\n" ,val); +printf ("error sending frame: %u\n" , val);return 0 ; }
Signature · 7 lines
1.8.1.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/1 Cleanup Kconfig files
In reply to Alexander ShiyanThis patch provides a global cleanup barebox Kconfig files. This includes replacing spaces to tabs, formatting in accordance format.
No functional changes.
--- arch/arm/mach-at91/Kconfig | 1 - arch/arm/mach-imx/Kconfig | 1 - arch/arm/mach-omap/Kconfig | 4 ++-- arch/ppc/mach-mpc85xx/Kconfig | 8 ++++---- 4 files changed, 6 insertions(+), 8 deletions(-)
arch/arm/mach-at91/Kconfig +0 -1
@@ -342,7 +342,6 @@ config MACH_QIL_A9G20 Select this if you are using a Calao Systems QIL-A9G20 Board. <http://www.calao-systems.com> - endchoice endif
arch/arm/mach-imx/Kconfig +0 -1
@@ -248,7 +248,6 @@ config MACH_IMX21ADS Say Y here if you are using the Freescale i.MX21ads board equipped with a Freescale i.MX21 Processor - # ---------------------------------------------------------- comment "i.MX25 Boards"
arch/arm/mach-omap/Kconfig +2 -2
@@ -95,8 +95,8 @@ config BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO bool depends on BAREBOX_UPDATE help - Say Y for barebox update SPI NOR MLO handler. - AM35xx, AM33xx chips use big endian MLO for SPI NOR flash. + Say Y for barebox update SPI NOR MLO handler. + AM35xx, AM33xx chips use big endian MLO for SPI NOR flash. config ARCH_TEXT_BASE hex
arch/ppc/mach-mpc85xx/Kconfig +4 -4
@@ -48,10 +48,10 @@ config MPC8544 default y config DDR_SPD - bool - default y + bool + default y config FSL_DDR2 - bool - default y + bool + default y endif
Signature · 7 lines
1.8.1.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 5/6 gui: Fix signed/unsigned arguments for printf
In reply to Alexander Shiyan"%u" in format string requires a unsigned integer.
--- lib/gui/png_pico.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/gui/png_pico.c +1 -1
@@ -57,7 +57,7 @@ struct image *png_open(char *inbuf, int insize) png_info =PNG_decode (inbuf, insize);if (PNG_error) { -printf ("error %u:\n" , PNG_error); +printf ("error %i:\n" , PNG_error); ret = -EINVAL ; goto err; }
Signature · 7 lines
1.8.1.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 6/6 imx-usb-loader: Fix signed/unsigned arguments for printf
In reply to Alexander Shiyan"%i" in format string requires a signed integer.
"%d" in format string requires a signed integer.
--- scripts/imx/imx-usb-loader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
scripts/imx/imx-usb-loader.c +4 -4
@@ -319,7 +319,7 @@ static int transfer(struct libusb_device_handle *h, int report, unsigned char *pmemcpy (p, &tmp[1 ], *last_trans); } }else { -printf ("Unexpected report %i err=%i, cnt=%i, last_trans=%i, %02x %02x %02x %02x\n" , +printf ("Unexpected report %i err=%i, cnt=%u, last_trans=%i, %02x %02x %02x %02x\n" , tmp[0 ], err, cnt, *last_trans, tmp[0 ], tmp[1 ], tmp[2 ], tmp[3 ]); err =0 ; }
@@ -468,7 +468,7 @@ static int read_memory(struct libusb_device_handle *h, struct usb_id *p_id, tmp[0 ] = tmp[1 ] = tmp[2 ] = tmp[3 ] =0 ; err =transfer (h,4 , tmp,64 , &last_trans, p_id);if (err) { -printf ("r4 in err=%i, last_trans=%i %02x %02x %02x %02x cnt=%d rem=%d\n" , +printf ("r4 in err=%i, last_trans=%i %02x %02x %02x %02x cnt=%u rem=%d\n" , err, last_trans, tmp[0 ], tmp[1 ], tmp[2 ], tmp[3 ], cnt, rem);break ; }
@@ -476,7 +476,7 @@ static int read_memory(struct libusb_device_handle *h, struct usb_id *p_id,if ((last_trans ==64 ) && (cnt == rem)) {/* Last transfer is expected to be too large for HID */ }else { -printf ("err: %02x %02x %02x %02x cnt=%d rem=%d last_trans=%i\n" , +printf ("err: %02x %02x %02x %02x cnt=%u rem=%d last_trans=%i\n" , tmp[0 ], tmp[1 ], tmp[2 ], tmp[3 ], cnt, rem, last_trans); } last_trans = rem;
@@ -1240,7 +1240,7 @@ static int do_irom_download(struct libusb_device_handle *h, struct usb_id *p_id, } } -printf ("loading binary file(%s) to %08x, skip=0x%x, fsize=%d type=%d...\n" , +printf ("loading binary file(%s) to %08x, skip=0x%x, fsize=%u type=%d...\n" , curr->filename, dladdr, skip, fsize, type); ret = load_file(h, p_id, p, cnt, buf, BUF_SIZE,
Signature · 7 lines
1.8.1.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 3 lines · Alexander Shiyan
"%d" in format string requires a signed integer.
Signed-off-by Alexander Shiyan <[email protected]>
Applied, thanks.
I like Cleanups ;)
Sascha
Quoted 35 lines
--- arch/arm/mach-at91/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-at91/gpio.c +2
-2@@ -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 ; }Signature · 7 lines
1.8.1.5 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
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 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox