From: Wolfgang Denk Date: Thu, 27 Oct 2011 23:59:06 +0200 Subject: [U-Boot] [PATCH 4/5] GCC4.6: Squash subsequent warnings in usb_storage.c In-Reply-To: <1319535558-20782-5-git-send-email-marek.vasut@gmail.com> References: <1319535558-20782-1-git-send-email-marek.vasut@gmail.com> <1319535558-20782-5-git-send-email-marek.vasut@gmail.com> Message-ID: <20111027215906.0574412B7BBC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek Vasut, In message <1319535558-20782-5-git-send-email-marek.vasut@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 > Cc: Wolfgang Denk > Cc: Simon Glass > Cc: Mike Frysinger > Cc: Remy Bohmer > --- > 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.