On Sat, 11 Apr 2020 at 10:36, Heinrich Schuchardt <xypron.g...@gmx.de> 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 <xypron.g...@gmx.de>
> ---
>  tools/image-host.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <s...@chromium.org>

Reply via email to