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>
diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c
index 8c04ecb..d1c14f1 100644
--- a/lib/efi_loader/efi_bootmgr.c
+++ b/lib/efi_loader/efi_bootmgr.c
@@ -70,8 +70,8 @@
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 @@
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;