[U-Boot] [PATCH 4/5] GCC4.6: Squash subsequent warnings in usb_storage.c

Wolfgang Denk wd at denx.de
Thu Oct 27 23:59:06 CEST 2011


Dear Marek Vasut,

In message <1319535558-20782-5-git-send-email-marek.vasut at gmail.com> you wrote:
> usb_storage.c: In function ‘us_one_transfer’:
> usb_storage.c:377:7: warning: format ‘%X’ expects argument of type ‘unsigned
> int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c:389:6: warning: format ‘%d’ expects argument of type ‘int’, but
> argument 2 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c:394:6: warning: format ‘%d’ expects argument of type ‘int’, but
> argument 2 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c: In function ‘usb_stor_BBB_reset’:
> usb_storage.c:442:2: warning: format ‘%X’ expects argument of type ‘unsigned
> int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c:448:2: warning: format ‘%X’ expects argument of type ‘unsigned
> int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c:454:2: warning: format ‘%X’ expects argument of type ‘unsigned
> int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c: In function ‘usb_stor_CB_reset’:
> usb_storage.c:482:2: warning: format ‘%X’ expects argument of type ‘unsigned
> int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c: In function ‘usb_stor_CB_comdat’:
> usb_storage.c:572:3: warning: format ‘%X’ expects argument of type ‘unsigned
> int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c:584:4: warning: format ‘%X’ expects argument of type ‘unsigned
> int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c: In function ‘usb_stor_BBB_transport’:
> usb_storage.c:782:3: warning: format ‘%d’ expects argument of type ‘int’, but
> argument 3 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c: In function ‘usb_stor_CB_transport’:
> usb_storage.c:807:2: warning: format ‘%X’ expects argument of type ‘unsigned
> int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c:830:3: warning: format ‘%X’ expects argument of type ‘unsigned
> int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
> usb_storage.c:857:3: warning: format ‘%d’ expects argument of type ‘int’, but
> argument 2 has type ‘long unsigned int’ [-Wformat]
> 
> Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
> Cc: Wolfgang Denk <wd at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Mike Frysinger <vapier at gentoo.org>
> Cc: Remy Bohmer <linux at bohmer.net>
> ---
>  common/usb_storage.c |   26 +++++++++++++-------------
>  1 files changed, 13 insertions(+), 13 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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
Command, n.:
            Statement presented by a human and accepted by a computer
in such a manner as to make the human feel as if he is in control.


More information about the U-Boot mailing list