
From: Simon Glass <sjg@chromium.org> It is common to run the EFI app without a display, e.g. for testing. Drop the unwanted warnings about this: EFI graphics output protocol not found (err=-524) No video mode configured in EFI! Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) drivers/video/efi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/video/efi.c b/drivers/video/efi.c index eb084b31a41..1fe76f27bcc 100644 --- a/drivers/video/efi.c +++ b/drivers/video/efi.c @@ -172,8 +172,8 @@ static int save_vesa_mode(struct vesa_mode_info *vesa, else ret = get_mode_from_entry(vesa, &priv->fb, &info); if (ret) { - printf("EFI graphics output protocol not found (err=%dE)\n", - ret); + log_debug("EFI graphics output protocol not found (err=%dE)\n", + ret); return ret; } @@ -257,7 +257,9 @@ static int efi_video_probe(struct udevice *dev) return 0; err: - printf("No video mode configured in EFI!\n"); + if (ret != -ENOTSUPP) + printf("No video mode configured in EFI!\n"); + return ret; } -- 2.43.0