Skip to content

Commit

Permalink
[app][uefi] fix warning in uefi code
Browse files Browse the repository at this point in the history
  • Loading branch information
travisg committed Jun 17, 2024
1 parent 74864a5 commit 907d2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/uefi/uefi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int load_pe_file(const char *blkdev) {
return -2;
}
if (dos_header->e_lfanew > kBlocKSize - sizeof(IMAGE_FILE_HEADER)) {
printf("Invalid PE header offset %d exceeds maximum read size of %u - %u\n",
printf("Invalid PE header offset %d exceeds maximum read size of %zu - %zu\n",
dos_header->e_lfanew, kBlocKSize, sizeof(IMAGE_FILE_HEADER));
return -3;
}
Expand All @@ -118,7 +118,7 @@ int load_pe_file(const char *blkdev) {
printf("PE header machine type: %x\n",
static_cast<int>(file_header->Machine));
if (file_header->SizeOfOptionalHeader != sizeof(IMAGE_OPTIONAL_HEADER64)) {
printf("Unexpected size of optional header %d, expected %d\n",
printf("Unexpected size of optional header %d, expected %zu\n",
file_header->SizeOfOptionalHeader, sizeof(IMAGE_OPTIONAL_HEADER64));
return -5;
}
Expand Down

0 comments on commit 907d2d5

Please sign in to comment.