Re: [PATCH 1/1] mkimage: struct stat.st_size may not be long

2022-01-24 Thread Tom Rini
On Sat, Jan 15, 2022 at 08:12:56PM +0100, Heinrich Schuchardt wrote: > The component st_size of struct stat is of type off_t. Depending on the > system printing it it with %ld leads to a warning: > > tools/mkimage.c:438:54: warning: format '%ld' expects argument of type > 'long int', but argument

Re: [PATCH 1/1] mkimage: struct stat.st_size may not be long

2022-01-17 Thread Mark Kettenis
> Date: Mon, 17 Jan 2022 21:20:58 +0100 > From: Milan P. Stanić > > It fixes these warnings below. > > On Sat, 2022-01-15 at 20:12, Heinrich Schuchardt wrote: > > The component st_size of struct stat is of type off_t. Depending on the > > system printing it it with %ld leads to a warning: > > >

Re: [PATCH 1/1] mkimage: struct stat.st_size may not be long

2022-01-17 Thread Milan P . Stanić
It fixes these warnings below. On Sat, 2022-01-15 at 20:12, Heinrich Schuchardt wrote: > The component st_size of struct stat is of type off_t. Depending on the > system printing it it with %ld leads to a warning: > > tools/mkimage.c:438:54: warning: format '%ld' expects argument of type > 'long

[PATCH 1/1] mkimage: struct stat.st_size may not be long

2022-01-15 Thread Heinrich Schuchardt
The component st_size of struct stat is of type off_t. Depending on the system printing it it with %ld leads to a warning: tools/mkimage.c:438:54: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'off_t' {aka 'long long int'} [-Wformat=] 438 | "%s: Bad size: