mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
efi_loader: debug output file handle in efi_file_open()
For debugging it is helpful to know the address of the file handle created by the Open() method of the EFI file protocol. So let's write it with EFI_PRINT(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
d7e0b0109e
commit
19b2d895fb
1 changed files with 4 additions and 2 deletions
|
@ -257,10 +257,12 @@ static efi_status_t EFIAPI efi_file_open(struct efi_file_handle *file,
|
|||
|
||||
/* Open file */
|
||||
*new_handle = file_open(fh->fs, fh, file_name, open_mode, attributes);
|
||||
if (*new_handle)
|
||||
if (*new_handle) {
|
||||
EFI_PRINT("file handle %p\n", *new_handle);
|
||||
ret = EFI_SUCCESS;
|
||||
else
|
||||
} else {
|
||||
ret = EFI_NOT_FOUND;
|
||||
}
|
||||
out:
|
||||
return EFI_EXIT(ret);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue