summaryrefslogtreecommitdiff
path: root/lib/efi_loader/helloworld.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-05-16 11:23:30 -0400
committerTom Rini <trini@konsulko.com>2023-05-16 11:23:30 -0400
commit6e1852ca2c418e2536ead4b51c4d84a59926b3f1 (patch)
tree4e832f1a587f2d4b80ee85cc246fe5d83b5a334b /lib/efi_loader/helloworld.c
parent5645a50a8639a53856bcda60f5eb9e07a5bd31a9 (diff)
parentc7c0ca37673d8f1ae1c54dad1869101f566923f7 (diff)
downloadu-boot-master.tar.gz
Merge tag 'efi-2023-07-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efiHEADmaster
Pull request efi-2023-07-rc3 Documentation: * update the description of signature algorithms UEFI: * fix unaligned access to GUID in HII database protocol * fix launching EFI binaries loaded via semihosting * fix filling of file path in loaded image protocol for non-block devices
Diffstat (limited to 'lib/efi_loader/helloworld.c')
-rw-r--r--lib/efi_loader/helloworld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/efi_loader/helloworld.c b/lib/efi_loader/helloworld.c
index 6405f58ec3..bd72822c0b 100644
--- a/lib/efi_loader/helloworld.c
+++ b/lib/efi_loader/helloworld.c
@@ -216,6 +216,10 @@ efi_status_t EFIAPI efi_main(efi_handle_t handle,
(con_out, u"Cannot open device path to text protocol\r\n");
goto out;
}
+ con_out->output_string(con_out, u"File path: ");
+ ret = print_device_path(loaded_image->file_path, device_path_to_text);
+ if (ret != EFI_SUCCESS)
+ goto out;
if (!loaded_image->device_handle) {
con_out->output_string
(con_out, u"Missing device handle\r\n");
@@ -234,10 +238,6 @@ efi_status_t EFIAPI efi_main(efi_handle_t handle,
ret = print_device_path(device_path, device_path_to_text);
if (ret != EFI_SUCCESS)
goto out;
- con_out->output_string(con_out, u"File path: ");
- ret = print_device_path(loaded_image->file_path, device_path_to_text);
- if (ret != EFI_SUCCESS)
- goto out;
out:
boottime->exit(handle, ret, 0, NULL);