In message <[EMAIL PROTECTED]> you wrote:
> Fix the following warning on avr32 and, from the looks of it, all other
> architectures except arm, blackfin and mips.
> 
> cmd_bdinfo.c: In function 'do_bdinfo':
> cmd_bdinfo.c:367: warning: format '%d' expects type 'int', but argument
> 2 has type 'long unsigned int'
> 
> In order to not introduce new warnings on the aforementioned three
> architectures as well as i386, I added a cast to unsigned long. This
> should be safe even if bi_baudrate is declared as 'int' (assuming
> there's no such thing as negative baud rates.)

Instead of the cast, should we not rather fix ARM, BF and MIPS to use
ulong like anybody else?

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: [EMAIL PROTECTED]
We Klingons believe as you do -- the sick should die. Only the strong
should live.
        -- Kras, "Friday's Child", stardate 3497.2

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to