From: Mate Kukri Date: Thu, 15 Aug 2024 09:52:56 +0000 (+0100) Subject: loader/efi/chainloader: Do not print device path of chainloaded file X-Git-Tag: grub-2.14-rc1~417 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33b94f2a9bc90e086349808ef53bc7f87cff6122;p=thirdparty%2Fgrub.git loader/efi/chainloader: Do not print device path of chainloaded file Users have no reason to see this and it can break graphical boot. Signed-off-by: Mate Kukri Reviewed-by: Daniel Kiper --- diff --git a/grub-core/loader/efi/chainloader.c b/grub-core/loader/efi/chainloader.c index 1de98f783..869307bf3 100644 --- a/grub-core/loader/efi/chainloader.c +++ b/grub-core/loader/efi/chainloader.c @@ -185,7 +185,6 @@ make_file_path (grub_efi_device_path_t *dp, const char *filename) /* Fill the file path for the directory. */ d = (grub_efi_device_path_t *) ((char *) file_path + ((char *) d - (char *) dp)); - grub_efi_print_device_path (d); if (copy_file_path ((grub_efi_file_path_device_path_t *) d, dir_start, dir_end - dir_start) != GRUB_ERR_NONE) { @@ -272,9 +271,6 @@ grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)), file_path = make_file_path (dp, filename); if (file_path == NULL) goto fail; - - grub_printf ("file path: "); - grub_efi_print_device_path (file_path); } size = grub_file_size (file);