rimage: cast size_t to correct format types

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2019-01-30 07:47:10 +01:00
parent 05912c5639
commit a8d33b2d36
1 changed files with 4 additions and 3 deletions

View File

@ -375,8 +375,9 @@ static int simple_write_firmware(struct image *image)
return -errno;
fprintf(stdout, "firmware: image size %ld (0x%lx) bytes %d modules\n\n",
hdr.file_size + sizeof(hdr), hdr.file_size + sizeof(hdr),
hdr.num_modules);
(long) (hdr.file_size + sizeof(hdr)),
(long) (hdr.file_size + sizeof(hdr)),
hdr.num_modules);
return 0;
}
@ -459,7 +460,7 @@ int write_logs_dictionary(struct image *image)
fprintf(stdout, "logs dictionary: size %u\n",
header.data_length + header.data_offset);
fprintf(stdout, "including fw version of size: %lu\n\n",
sizeof(header.version));
(unsigned long) sizeof(header.version));
}
}
out: