mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
efi_loader: don't call log with __func__ as parameter
The log functions print file name, line number, and function name if selected via the log command or customizing. Don't print the function name twice. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
8b2b125e95
commit
7ea79e511d
1 changed files with 3 additions and 4 deletions
|
@ -70,8 +70,8 @@ static efi_status_t try_load_entry(u16 n, efi_handle_t *handle,
|
||||||
if (lo.attributes & LOAD_OPTION_ACTIVE) {
|
if (lo.attributes & LOAD_OPTION_ACTIVE) {
|
||||||
u32 attributes;
|
u32 attributes;
|
||||||
|
|
||||||
log_debug("%s: trying to load \"%ls\" from %pD\n",
|
log_debug("trying to load \"%ls\" from %pD\n", lo.label,
|
||||||
__func__, lo.label, lo.file_path);
|
lo.file_path);
|
||||||
|
|
||||||
ret = EFI_CALL(efi_load_image(true, efi_root, lo.file_path,
|
ret = EFI_CALL(efi_load_image(true, efi_root, lo.file_path,
|
||||||
NULL, 0, handle));
|
NULL, 0, handle));
|
||||||
|
@ -187,8 +187,7 @@ efi_status_t efi_bootmgr_load(efi_handle_t *handle, void **load_options)
|
||||||
|
|
||||||
num = size / sizeof(uint16_t);
|
num = size / sizeof(uint16_t);
|
||||||
for (i = 0; i < num; i++) {
|
for (i = 0; i < num; i++) {
|
||||||
log_debug("%s trying to load Boot%04X\n", __func__,
|
log_debug("trying to load Boot%04X\n", bootorder[i]);
|
||||||
bootorder[i]);
|
|
||||||
ret = try_load_entry(bootorder[i], handle, load_options);
|
ret = try_load_entry(bootorder[i], handle, load_options);
|
||||||
if (ret == EFI_SUCCESS)
|
if (ret == EFI_SUCCESS)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue