]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
efi/gop: Add debug output on GOP probing
authorPeter Jones <pjones@redhat.com>
Wed, 4 Mar 2020 11:58:50 +0000 (12:58 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 Mar 2020 20:42:13 +0000 (21:42 +0100)
Add debug information to EFI GOP video driver probing function.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/video/efi_gop.c

index c9e40e8d4e9bef2e95b0d34896388e11be4e9756..be446f8d29153593873dfab7147ce77d0e30b486 100644 (file)
@@ -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;
 }