[coreboot] [PATCH] sizeof doesn't always return long, it seems

Myles Watson mylesgw at gmail.com
Tue Aug 17 18:33:56 CEST 2010


On Tue, Aug 17, 2010 at 7:31 AM, Jens Rottmann
<JRottmann at lippertembedded.de> wrote:
> coreboot: sizeof doesn't always return long, it seems
>
> Correct for size_t would be %zx, but coreboot's printf doesn't support this.
> Trying to keep it simple:  Two sizes are expected equal so use same %x for both.
> Cast to unsigned int to make sure it fits.
>
> Signed-off-by: Jens Rottmann <JRottmann at LiPPERTEmbedded.de>
Acked-by: Myles Watson <mylesgw at gmail.com>
Rev 5719.

Thanks,
Myles




More information about the coreboot mailing list