util/arm_boot_tools/mksunxiboot: Correct format strings

%lx is the right format string for printing longs.

Found-by: Coverity Scan, CID 1229686, 1229687
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: Ib7ab54dc039bdd60969c79f3c881d69fc68f0d2a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32008
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Jacob Garber 2019-03-20 21:02:27 -06:00 committed by Patrick Georgi
parent 0a4dcee75f
commit 3eebb16c05
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ int main(int argc, char *argv[])
return EXIT_FAILURE; return EXIT_FAILURE;
} }
printf("File size: 0x%x\n", file_size); printf("File size: 0x%lx\n", file_size);
if (fread(file_data, file_size, 1, fd_in) != 1) { if (fread(file_data, file_size, 1, fd_in) != 1) {
fprintf(stderr, "Cannot read %s: %s\n", argv[1], fprintf(stderr, "Cannot read %s: %s\n", argv[1],
strerror(errno)); strerror(errno));
@ -168,7 +168,7 @@ int main(int argc, char *argv[])
if (load_size > SRAM_LOAD_MAX_SIZE) if (load_size > SRAM_LOAD_MAX_SIZE)
load_size = SRAM_LOAD_MAX_SIZE; load_size = SRAM_LOAD_MAX_SIZE;
printf("Load size: 0x%x\n", load_size); printf("Load size: 0x%lx\n", load_size);
fd_out = fopen(argv[2], "w"); fd_out = fopen(argv[2], "w");
if (!fd_out) { if (!fd_out) {