[haiku-commits] Re: BOM: r37694 fwohci.c:2433: error: format '%08x' expects type 'unsigned int', but argument 8 has type 'uint32'

Le 14 août 2010 à 19:07, Ingo Weinhold a écrit :

> 
> On 2010-08-14 at 14:32:14 [+0200], Andreas Färber <andreas.faerber@xxxxxx> 
> wrote:
>> Am 22.07.2010 um 18:06 schrieb buildomatic@xxxxxxxxx:
>> 
>> Anyone any suggestion how to fix this? It looks like the offending
>> code is from some BSD...
> 
> Adjust the definition of the htole32() and le32toh() macros (cast to 
> uint32_t at least). The printf() code is not portable, though, since it 
> doesn't use the PRI* format macros.

Can't you use B_PRIu32 from SupportDefs.h ?

François.

Other related posts: