[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 11/12] efi/gop: Add debug output on GOP probing
From: |
Javier Martinez Canillas |
Subject: |
[PATCH v2 11/12] efi/gop: Add debug output on GOP probing |
Date: |
Wed, 4 Mar 2020 12:58:50 +0100 |
From: Peter Jones <address@hidden>
Add debug information to EFI GOP video driver probing function.
Signed-off-by: Peter Jones <address@hidden>
Signed-off-by: Javier Martinez Canillas <address@hidden>
---
grub-core/video/efi_gop.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/grub-core/video/efi_gop.c b/grub-core/video/efi_gop.c
index c9e40e8d4e9..be446f8d291 100644
--- a/grub-core/video/efi_gop.c
+++ b/grub-core/video/efi_gop.c
@@ -71,7 +71,10 @@ check_protocol (void)
handles = grub_efi_locate_handle (GRUB_EFI_BY_PROTOCOL,
&graphics_output_guid, NULL, &num_handles);
if (!handles || num_handles == 0)
- return 0;
+ {
+ grub_dprintf ("video", "GOP: no handles\n");
+ return 0;
+ }
for (i = 0; i < num_handles; i++)
{
@@ -81,6 +84,7 @@ check_protocol (void)
grub_video_gop_iterate (check_protocol_hook, &have_usable_mode);
if (have_usable_mode)
{
+ grub_dprintf ("video", "GOP: found usable mode\n");
grub_free (handles);
return 1;
}
@@ -89,6 +93,8 @@ check_protocol (void)
gop = 0;
gop_handle = 0;
+ grub_dprintf ("video", "GOP: no usable mode\n");
+
return 0;
}
--
2.24.1
- [PATCH v2 00/12] A set of trivial patches from the Fedora package, Javier Martinez Canillas, 2020/03/04
- [PATCH v2 01/12] linux/getroot: Handle rssd storage device names, Javier Martinez Canillas, 2020/03/04
- [PATCH v2 02/12] efi: Print more debug info in our module loader, Javier Martinez Canillas, 2020/03/04
- [PATCH v2 03/12] Makefile: Make libgrub.pp depend on config-util.h, Javier Martinez Canillas, 2020/03/04
- [PATCH v2 05/12] normal/completion: Fix possible NULL pointer dereference, Javier Martinez Canillas, 2020/03/04
- [PATCH v2 04/12] kern: Add grub_debug_enabled(), Javier Martinez Canillas, 2020/03/04
- [PATCH v2 06/12] efi/gop: Add support for BLT_ONLY adapters, Javier Martinez Canillas, 2020/03/04
- [PATCH v2 07/12] efi/uga: Use 64 bit for fb_base, Javier Martinez Canillas, 2020/03/04
- [PATCH v2 09/12] efi: Print error messages to grub_efi_allocate_pages_real(), Javier Martinez Canillas, 2020/03/04
- [PATCH v2 11/12] efi/gop: Add debug output on GOP probing,
Javier Martinez Canillas <=
- [PATCH v2 08/12] kern: Make grub_error() more verbose, Javier Martinez Canillas, 2020/03/04
- Re: [PATCH v2 08/12] kern: Make grub_error() more verbose, Daniel Kiper, 2020/03/06
- Message not available
- Re: [PATCH v2 08/12] kern: Make grub_error() more verbose, Daniel Kiper, 2020/03/06
- Re: [PATCH v2 08/12] kern: Make grub_error() more verbose, Vladimir 'phcoder' Serbinenko, 2020/03/06