diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-29 07:15:04 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-29 14:23:30 +0200 |
commit | 7ea79e511d308fb8aea4189d1617ee59887d3807 (patch) | |
tree | af0068fe8d5f731a01203d4396316540098851cc /lib/efi_loader | |
parent | 8b2b125e95c44bb007b4573945f4aedb8a56222c (diff) | |
download | u-boot-7ea79e511d308fb8aea4189d1617ee59887d3807.tar.gz |
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>
Diffstat (limited to 'lib/efi_loader')
-rw-r--r-- | lib/efi_loader/efi_bootmgr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index 8c04ecbdc8..d1c14f1bbc 100644 --- a/lib/efi_loader/efi_bootmgr.c +++ b/lib/efi_loader/efi_bootmgr.c @@ -70,8 +70,8 @@ static efi_status_t try_load_entry(u16 n, efi_handle_t *handle, if (lo.attributes & LOAD_OPTION_ACTIVE) { u32 attributes; - log_debug("%s: trying to load \"%ls\" from %pD\n", - __func__, lo.label, lo.file_path); + log_debug("trying to load \"%ls\" from %pD\n", lo.label, + lo.file_path); ret = EFI_CALL(efi_load_image(true, efi_root, lo.file_path, 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); for (i = 0; i < num; i++) { - log_debug("%s trying to load Boot%04X\n", __func__, - bootorder[i]); + log_debug("trying to load Boot%04X\n", bootorder[i]); ret = try_load_entry(bootorder[i], handle, load_options); if (ret == EFI_SUCCESS) break; |