Fix more printf() format warnings
PATCH 1/1 Fix more printf() format warnings
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
--- common/cmd_flash.c | 4 ++-- drivers/usb/usbdcore.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
common/cmd_flash.c +2 -2
@@ -342,7 +342,7 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])puts ("Bad sector specification\n" );return 1 ; } -printf ("Erase Flash Sectors %d-%d in Bank # %d " , +printf ("Erase Flash Sectors %d-%d in Bank # %zu " , sect_first, sect_last, (info-flash_info)+1 ); rcode =flash_erase (info, sect_first, sect_last);return rcode;
@@ -534,7 +534,7 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])puts ("Bad sector specification\n" );return 1 ; } -printf ("%sProtect Flash Sectors %d-%d in Bank # %d\n" , +printf ("%sProtect Flash Sectors %d-%d in Bank # %zu\n" , p ?"" :"Un-" , sect_first, sect_last, (info-flash_info)+1 );for (i = sect_first; i <= sect_last; i++) {
drivers/usb/usbdcore.c +1 -1
@@ -552,7 +552,7 @@ struct urb *usbd_alloc_urb (struct usb_device_instance *device,struct urb *urb;if (!(urb = (struct urb *)malloc (sizeof (struct urb )))) { -usberr (" F A T A L: malloc(%u) FAILED!!!!" , +usberr (" F A T A L: malloc(%zu) FAILED!!!!" ,sizeof (struct urb ));return NULL ; }
Signature · 1 line
1.5.6
Wolfgang Denk
AppliedPATCH 1/1 Fix more printf() format warnings
Quoted 5 lines · In message <[email protected]> you wrote:
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>--- common/cmd_flash.c | 4 ++-- drivers/usb/usbdcore.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"My name is Linus Torvalds, you messed with my kernel, prepare to die"
- Linus Torvalds in
<[email protected]>