loader/efi/linux: Enhance error message of linux command
PATCH v3 1/1 loader/efi/linux: Enhance error message of linux command
From: khaalid <[email protected]>
As said in my privious patch.
The error message "cannot start image" seems better than "start_imaged returned ..", to make it consistent with the other one.
Signed-off-by khalid Ali<[email protected]>
--- grub-core/loader/efi/linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
grub-core/loader/efi/linux.c +2 -2
@@ -212,7 +212,7 @@ grub_arch_efi_linux_boot_image (grub_addr_t addr, grub_size_t size, char *args) (grub_efi_device_path_t *) mempath, (void *) addr, size, &image_handle);if (status !=GRUB_EFI_SUCCESS ) -return grub_error (GRUB_ERR_BAD_OS ,"cannot load image" ); +return grub_error (GRUB_ERR_BAD_OS ,"cannot load image 0x%lx" , status);grub_dprintf ("linux" ,"linux command line: '%s'\n" , args);
@@ -238,7 +238,7 @@ grub_arch_efi_linux_boot_image (grub_addr_t addr, grub_size_t size, char *args) status = b->start_image (image_handle,0 ,NULL );/* When successful, not reached */ -grub_error (GRUB_ERR_BAD_OS ,"start_image() returned 0x%" PRIxGRUB_EFI_UINTN_T, status); +grub_error (GRUB_ERR_BAD_OS ,"cannot start image 0x%lx" , status);grub_efi_free_pages ((grub_addr_t ) loaded_image->load_options,GRUB_EFI_BYTES_TO_PAGES (len)); loaded_image->load_options =NULL ;
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel