mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
efi_loader: use correct format string for unsigned long
virt_size is of type unsigned long. So it should be printed with %ul. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
474a6f5aa1
commit
e540c48636
1 changed files with 4 additions and 4 deletions
|
|
@ -133,8 +133,8 @@ void *efi_load_pe(void *efi, struct efi_loaded_image *loaded_image_info)
|
|||
image_size = opt->SizeOfImage;
|
||||
efi_reloc = efi_alloc(virt_size, EFI_LOADER_DATA);
|
||||
if (!efi_reloc) {
|
||||
printf("%s: Could not allocate %ld bytes\n",
|
||||
__func__, virt_size);
|
||||
printf("%s: Could not allocate %lu bytes\n",
|
||||
__func__, virt_size);
|
||||
return NULL;
|
||||
}
|
||||
entry = efi_reloc + opt->AddressOfEntryPoint;
|
||||
|
|
@ -147,8 +147,8 @@ void *efi_load_pe(void *efi, struct efi_loaded_image *loaded_image_info)
|
|||
image_size = opt->SizeOfImage;
|
||||
efi_reloc = efi_alloc(virt_size, EFI_LOADER_DATA);
|
||||
if (!efi_reloc) {
|
||||
printf("%s: Could not allocate %ld bytes\n",
|
||||
__func__, virt_size);
|
||||
printf("%s: Could not allocate %lu bytes\n",
|
||||
__func__, virt_size);
|
||||
return NULL;
|
||||
}
|
||||
entry = efi_reloc + opt->AddressOfEntryPoint;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue