From: Tom Rini Date: Fri, 24 Apr 2020 13:11:19 -0400 Subject: [PATCH 1/1] tools: image-host.c: use correct output format In-Reply-To: <20200411163604.5208-1-xypron.glpk@gmx.de> References: <20200411163604.5208-1-xypron.glpk@gmx.de> Message-ID: <20200424171119.GR4555@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 Sat, Apr 11, 2020 at 06:36:04PM +0200, Heinrich Schuchardt wrote: > When building on a 32bit host the following warning occurs: > > tools/image-host.c: In function ?fit_image_read_data?: > tools/image-host.c:310:42: warning: format ?%ld? expects argument of type > ?long int?, but argument 3 has type ?ssize_t? {aka ?int?} [-Wformat=] > printf("Can't read all file %s (read %ld bytes, expexted %ld)\n", > ~~^ > %d > filename, n, sbuf.st_size); > ~ > > n is of type ssize_t so we should use %zd for printing. > > Fixes: 7298e422504e ("mkimage: fit: add support to encrypt image with aes") > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: