From: Tom Rini Date: Thu, 26 Jul 2018 11:42:23 -0400 Subject: [U-Boot] [PATCH] cmd/ubi.c: Fix format warning In-Reply-To: <20180726153601.GA19327@mail.duskware.de> References: <1532619145-8775-1-git-send-email-trini@konsulko.com> <20180726153601.GA19327@mail.duskware.de> Message-ID: <20180726154223.GE11755@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: