]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/GenericQemuLoadImageLib: log "Not Found" at INFO level
authorLaszlo Ersek <lersek@redhat.com>
Tue, 9 Jun 2020 10:54:14 +0000 (12:54 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 10 Jun 2020 07:55:55 +0000 (07:55 +0000)
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 <ard.biesheuvel@arm.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200609105414.12474-1-lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c

index 14c8417d43e7f9af482ef01ae3911be5fa7c7f4b..114db7e8441fc8122d2fc5c1ba2cae021d62a6e9 100644 (file)
@@ -106,7 +106,8 @@ QemuLoadKernelImage (
     goto UnloadImage;\r
 \r
   default:\r
-    DEBUG ((DEBUG_ERROR, "%a: LoadImage(): %r\n", __FUNCTION__, Status));\r
+    DEBUG ((Status == EFI_NOT_FOUND ? DEBUG_INFO : DEBUG_ERROR,\r
+      "%a: LoadImage(): %r\n", __FUNCTION__, Status));\r
     return Status;\r
   }\r
 \r