aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2019-07-19 16:54:17 +0100
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2019-07-19 16:56:39 +0100
commit90b7dbf7d8acce9ab702d426f172f42c2033f330 (patch)
treeb158d075e625baa47790b9fbccc1a9c36f3055aa /tools/firmware-utils
parent9401780c2c87dc78116eabe30b4eae987b05a921 (diff)
downloadupstream-90b7dbf7d8acce9ab702d426f172f42c2033f330.tar.gz
upstream-90b7dbf7d8acce9ab702d426f172f42c2033f330.tar.bz2
upstream-90b7dbf7d8acce9ab702d426f172f42c2033f330.zip
firmware-utils: mkfwimage: fix more errors
Fix 4 errors reported by gcc 9 3 mismatched format type errors 1 unused variable error Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r--tools/firmware-utils/src/mkfwimage.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/firmware-utils/src/mkfwimage.c b/tools/firmware-utils/src/mkfwimage.c
index 6f993d121d..c779bd5d83 100644
--- a/tools/firmware-utils/src/mkfwimage.c
+++ b/tools/firmware-utils/src/mkfwimage.c
@@ -273,7 +273,7 @@ static void print_image_info(const image_info_t* im)
for (i = 0; i < im->part_count; ++i)
{
const part_data_t* d = &im->parts[i];
- INFO(" %10s: %8ld bytes (free: %8ld)\n",
+ INFO(" %10s: %8lld bytes (free: %8lld)\n",
d->partition_name,
d->stats.st_size,
d->partition_length - d->stats.st_size);
@@ -295,7 +295,7 @@ static u_int32_t filelength(const char* file)
return (ret);
}
-static int create_image_layout(const char* kernelfile, const char* rootfsfile, char* board_name, image_info_t* im)
+static int create_image_layout(const char* kernelfile, const char* rootfsfile, image_info_t* im)
{
uint32_t rootfs_len = 0;
part_data_t* kernel = &im->parts[0];
@@ -372,7 +372,7 @@ static int validate_image_layout(image_info_t* im)
return -3;
}
if (d->stats.st_size > d->partition_length) {
- ERROR("File '%s' too big (%d) - max size: 0x%08X (exceeds %lu bytes)\n",
+ ERROR("File '%s' too big (%d) - max size: 0x%08X (exceeds %llu bytes)\n",
d->filename, i, d->partition_length,
d->stats.st_size - d->partition_length);
return -4;
@@ -526,7 +526,7 @@ int main(int argc, char* argv[])
im.fwinfo = fwinfo;
- if ((rc = create_image_layout(kernelfile, rootfsfile, board_name, &im)) != 0)
+ if ((rc = create_image_layout(kernelfile, rootfsfile, &im)) != 0)
{
ERROR("Failed creating firmware layout description - error code: %d\n", rc);
return -3;