[U-Boot-Users] [PATCH v2] cmd_bdinfo: Fix printf() format warning

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Wed Jul 30 13:34:56 CEST 2008


Haavard Skinnemoen <haavard.skinnemoen at atmel.com> 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'

Ah, bugger. I completely misparsed that file -- do_bdinfo is supposed
to be arch-specific, but avr32 uses the same implementation as MIPS for
some arbitrary reason. So this patch just makes things worse.

Please ignore. I'll fix it some other way.

Btw, how about moving this stuff into an arch-specific file?
lib_<arch>/bdinfo.c for example?

Haavard




More information about the U-Boot mailing list