efi/gop: Add debug output on GOP probing
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>
This commit is contained in:
parent
c73cda3495
commit
3e8c338bfa
1 changed files with 7 additions and 1 deletions
|
@ -71,7 +71,10 @@ check_protocol (void)
|
||||||
handles = grub_efi_locate_handle (GRUB_EFI_BY_PROTOCOL,
|
handles = grub_efi_locate_handle (GRUB_EFI_BY_PROTOCOL,
|
||||||
&graphics_output_guid, NULL, &num_handles);
|
&graphics_output_guid, NULL, &num_handles);
|
||||||
if (!handles || num_handles == 0)
|
if (!handles || num_handles == 0)
|
||||||
return 0;
|
{
|
||||||
|
grub_dprintf ("video", "GOP: no handles\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < num_handles; i++)
|
for (i = 0; i < num_handles; i++)
|
||||||
{
|
{
|
||||||
|
@ -81,6 +84,7 @@ check_protocol (void)
|
||||||
grub_video_gop_iterate (check_protocol_hook, &have_usable_mode);
|
grub_video_gop_iterate (check_protocol_hook, &have_usable_mode);
|
||||||
if (have_usable_mode)
|
if (have_usable_mode)
|
||||||
{
|
{
|
||||||
|
grub_dprintf ("video", "GOP: found usable mode\n");
|
||||||
grub_free (handles);
|
grub_free (handles);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -89,6 +93,8 @@ check_protocol (void)
|
||||||
gop = 0;
|
gop = 0;
|
||||||
gop_handle = 0;
|
gop_handle = 0;
|
||||||
|
|
||||||
|
grub_dprintf ("video", "GOP: no usable mode\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue