summaryrefslogtreecommitdiff
path: root/cmd/bootefi.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-07-10 15:46:57 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-07-13 20:07:07 +0200
commit868353daa379849953ae30f400536ff61624de54 (patch)
treebb8bf778e6d5edf6985a013277c880f759725fa9 /cmd/bootefi.c
parent9897350c52196736cce1a601b172fb5ea14a75c1 (diff)
downloadu-boot-868353daa379849953ae30f400536ff61624de54.tar.gz
u-boot-868353daa379849953ae30f400536ff61624de54.tar.bz2
u-boot-868353daa379849953ae30f400536ff61624de54.zip
efi_loader: memory leak in efi_set_bootdev()
efi_dp_str() allocates memory which should be released after use. Use %pD printf code. Adjust message wording. Fixes: d837cb1e3b6b ("efi: Add debugging to efi_set_bootdev()") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'cmd/bootefi.c')
-rw-r--r--cmd/bootefi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index 37ce659fa1..8ab0ff5a64 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -119,9 +119,9 @@ void efi_set_bootdev(const char *dev, const char *devnr, const char *path,
efi_free_pool(image_tmp);
}
bootefi_image_path = image;
- log_debug("- recorded device %ls\n", efi_dp_str(device));
+ log_debug("- boot device %pD\n", device);
if (image)
- log_debug("- and image %ls\n", efi_dp_str(image));
+ log_debug("- image %pD\n", image);
} else {
log_debug("- efi_dp_from_name() failed, err=%lx\n", ret);
efi_clear_bootdev();