Fixed warning of wrong variable type in fprintf

Fixed warning where variable passed to fprintf was of type size_t and
fprintf expected format of long int.

Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
This commit is contained in:
Andrey Borisovich 2022-01-26 10:48:20 +01:00 committed by Liam Girdwood
parent d0062122a8
commit 1589641903
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2018 Intel Corporation. All rights reserved.
// Copyright(c) 2018-2022 Intel Corporation. All rights reserved.
//
// Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
// Keyon Jie <yang.jie@linux.intel.com>
@ -1480,7 +1480,7 @@ int resign_image(struct image *image)
/* read file into buffer */
read = fread(buffer, 1, size, in_file);
if (read != size) {
fprintf(stderr, "error: unable to read %ld bytes from %s err %d\n",
fprintf(stderr, "error: unable to read %zu bytes from %s err %d\n",
size, image->in_file, errno);
ret = errno;
goto out;