From: Tom Rini Date: Thu, 22 Oct 2020 20:28:38 -0400 Subject: [PATCH] tools: image-host.c: use correct output format In-Reply-To: <20201008185124.6764-1-xypron.glpk@gmx.de> References: <20201008185124.6764-1-xypron.glpk@gmx.de> Message-ID: <20201023002838.GK14816@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, Oct 08, 2020 at 08:51:24PM +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:296:56: warning: format ?%ld? expects argument of > type ?long int?, but argument 3 has type ?__off64_t? > {aka ?long long int?} [-Wformat=] > printf("File %s don't have the expected size (size=%ld, expected=%d)\n", > ~~^ > %lld > filename, sbuf.st_size, expected_size); > ~~~~~~~~~~~~ > tools/image-host.c:311:62: warning: format ?%ld? expects argument of > type ?long int?, but argument 4 has type ?__off64_t? > {aka ?long long int?} [-Wformat=] > printf("Can't read all file %s (read %zd bytes, expexted %ld)\n", > ~~^ > %lld > filename, n, sbuf.st_size); > ~~~~~~~~~~~~ > > Fix the format strings. > > 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: