[U-Boot] [PATCH] cmd/ubi.c: Fix format warning

Tom Rini trini at konsulko.com
Thu Jul 26 15:42:23 UTC 2018


On Thu, Jul 26, 2018 at 05:36:01PM +0200, Martin Husemann wrote:
> On Thu, Jul 26, 2018 at 11:32:25AM -0400, Tom Rini wrote:
> > -	printf("Read %u bytes from volume %s to %p\n", size, volume, buf);
> > +	printf("Read %zd bytes from volume %s to %p\n", size, volume, buf);
> 
> Why make it signed? "%zu bytes" should be better.

Whoops, thanks.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180726/cb380d67/attachment.sig>


More information about the U-Boot mailing list