efi/chainloader: Do not print device path of chainloaded file
PATCH 1/1 efi/chainloader: Do not print device path of chainloaded file
Users have no reason to see this without explictily asking for it, and it can break graphical boot.
--- grub-core/loader/efi/chainloader.c | 4 ---- 1 file changed, 4 deletions(-)
grub-core/loader/efi/chainloader.c +0 -4
@@ -183,7 +183,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 ) {
@@ -270,9 +269,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);
Signature · 7 lines
2.39.2 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 2 lines · Mate Kukri
Users have no reason to see this without explicitly asking for it, and it can break graphical boot.
If you wanted users to be able to explicitly ask for the the output, you could use:
grub_dprintf ("loader", ...)'set debug=loader' then would provide the output.
But I don't see good reason to require such debug output.
Quoted 19 lines
Signed-off-by Mate Kukri <[email protected]>--- grub-core/loader/efi/chainloader.c | 4 ---- 1 file changed, 4 deletions(-)grub-core/loader/efi/chainloader.c +0
-1@@ -183,7 +183,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 ) {
grub-core/loader/efi/chainloader.c grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)), · line 274
Quoted 9 lines
grub-core/loader/efi/chainloader.c +0
-3@@ -270,9 +269,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);
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
I didn't see a reason to ever see this either, hence I added no dprintf (also i think "loader" isn't an existing dprintf name, and I try to avoid introducing those as much as I can).
By "explicitly asking for", I was thinking of the ability to simply print the path in the config (which admittedly isn't exactly the same thing as an UEFI device path).
Quoted 43 lines · Heinrich Schuchardt
Quoted 2 lines · Mate Kukri
Users have no reason to see this without explicitly asking for it, and it can break graphical boot.
If you wanted users to be able to explicitly ask for the the output, you could use:
grub_dprintf ("loader", ...)'set debug=loader' then would provide the output.
But I don't see good reason to require such debug output.
Quoted 27 lines
Signed-off-by Mate Kukri <[email protected]>--- grub-core/loader/efi/chainloader.c | 4 ---- 1 file changed, 4 deletions(-)grub-core/loader/efi/chainloader.c +0
-4@@ -183,7 +183,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 ) {@@ -270,9 +269,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); }
Quoted 2 lines
grub-core/loader/efi/chainloader.c grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)), · line 274
Quoted 1 line
grub-core/loader/efi/chainloader.c +0
-0size =grub_file_size (file);
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 1 line · Mate Kukri
Users have no reason to see this without explictily asking for it, and
Users do not have any option to ask for it. Why do not use grub_dprintf("efi", ...) instead of grub_printf()?
Daniel
Quoted 20 lines
it can break graphical boot.
Signed-off-by Mate Kukri <[email protected]>--- grub-core/loader/efi/chainloader.c | 4 ---- 1 file changed, 4 deletions(-)grub-core/loader/efi/chainloader.c +0
-1@@ -183,7 +183,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 ) {
grub-core/loader/efi/chainloader.c grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)), · line 274
Quoted 9 lines
grub-core/loader/efi/chainloader.c +0
-3@@ -270,9 +269,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);
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel