[U-Boot] [PATCH 4/9] GCC4.6: Squash warnings in 44x_spd_ddr.c

Wolfgang Denk wd at denx.de
Thu Oct 27 23:56:16 CEST 2011


Dear Marek Vasut,

In message <1319535462-20693-5-git-send-email-marek.vasut at gmail.com> you wrote:
> 44x_spd_ddr.c: In function 'program_tr0':
> 44x_spd_ddr.c:823: warning: format '%x' expects type 'unsigned int', but
> argument 2 has type 'long unsigned int'
> 44x_spd_ddr.c: In function 'program_tr1':
> 44x_spd_ddr.c:1054: warning: format '%x' expects type 'unsigned int', but
> argument 2 has type 'long unsigned int'
> 44x_spd_ddr.c: In function 'program_bxcr':
> 44x_spd_ddr.c:1127: warning: format '%d' expects type 'int', but argument 2 has
> type 'long unsigned int'
> 44x_spd_ddr.c:1196: warning: format '%d' expects type 'int', but argument 2 has
> type 'long unsigned int'
> 44x_spd_ddr.c:1196: warning: format '%d' expects type 'int', but argument 3 has
> type 'long unsigned int'
> 44x_spd_ddr.c:1196: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> 44x_spd_ddr.c:1196: warning: format '%d' expects type 'int', but argument 5 has
> type 'long unsigned int'
> 44x_spd_ddr.c:1242: warning: format '%d' expects type 'int', but argument 2 has
> type 'long unsigned int'
> 
> 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>
> ---
>  arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c |   17 ++++++++++-------
>  1 files changed, 10 insertions(+), 7 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
The project was large enough and management communication poor enough
to prompt many members of the team to see themselves  as  contestants
making  brownie  points,  rather  than as builders making programming
products. Each suboptimized  his  piece  to  meet  his  targets;  few
stopped to think about the total effect on the customer.
                              - Fred Brooks, "The Mythical Man Month"


More information about the U-Boot mailing list