From 14c7ed8b51f60097ad771277da69f74b22a7a759 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Tue, 9 Jun 2020 12:54:14 +0200 Subject: [PATCH] OvmfPkg/GenericQemuLoadImageLib: log "Not Found" at INFO level MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit gBS->LoadImage() returning EFI_NOT_FOUND is an expected condition; it means that QEMU wasn't started with "-kernel". Log this status code as INFO rather than ERROR. Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Philippe Mathieu-Daudé Signed-off-by: Laszlo Ersek Message-Id: <20200609105414.12474-1-lersek@redhat.com> Acked-by: Ard Biesheuvel --- .../Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c b/OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c index 14c8417d43..114db7e844 100644 --- a/OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c +++ b/OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c @@ -106,7 +106,8 @@ QemuLoadKernelImage ( goto UnloadImage; default: - DEBUG ((DEBUG_ERROR, "%a: LoadImage(): %r\n", __FUNCTION__, Status)); + DEBUG ((Status == EFI_NOT_FOUND ? DEBUG_INFO : DEBUG_ERROR, + "%a: LoadImage(): %r\n", __FUNCTION__, Status)); return Status; } -- 2.39.5