Blame SOURCES/edk2-OvmfPkg-GenericQemuLoadImageLib-log-Not-Found-at-INF.patch

82dd91
From 135d3d4b4ff12927f7b0c44e067fd42ceae83bb7 Mon Sep 17 00:00:00 2001
82dd91
From: Laszlo Ersek <lersek@redhat.com>
82dd91
Date: Wed, 24 Jun 2020 11:37:50 +0200
82dd91
Subject: [PATCH 2/3] OvmfPkg/GenericQemuLoadImageLib: log "Not Found" at INFO
82dd91
 level
82dd91
MIME-Version: 1.0
82dd91
Content-Type: text/plain; charset=UTF-8
82dd91
Content-Transfer-Encoding: 8bit
82dd91
82dd91
RH-Author: Laszlo Ersek <lersek@redhat.com>
82dd91
Message-id: <20200615080105.11859-3-lersek@redhat.com>
82dd91
Patchwork-id: 97533
82dd91
O-Subject: [RHEL-8.3.0 edk2 PATCH 2/3] OvmfPkg/GenericQemuLoadImageLib: log "Not Found" at INFO level
82dd91
Bugzilla: 1844682
82dd91
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
82dd91
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
82dd91
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
82dd91
82dd91
gBS->LoadImage() returning EFI_NOT_FOUND is an expected condition; it
82dd91
means that QEMU wasn't started with "-kernel". Log this status code as
82dd91
INFO rather than ERROR.
82dd91
82dd91
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
82dd91
Cc: Jordan Justen <jordan.l.justen@intel.com>
82dd91
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
82dd91
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
82dd91
Message-Id: <20200609105414.12474-1-lersek@redhat.com>
82dd91
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
82dd91
(cherry picked from commit 14c7ed8b51f60097ad771277da69f74b22a7a759)
82dd91
---
82dd91
 .../Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c  | 3 ++-
82dd91
 1 file changed, 2 insertions(+), 1 deletion(-)
82dd91
82dd91
diff --git a/OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c b/OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c
82dd91
index 14c8417d43..114db7e844 100644
82dd91
--- a/OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c
82dd91
+++ b/OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.c
82dd91
@@ -106,7 +106,8 @@ QemuLoadKernelImage (
82dd91
     goto UnloadImage;
82dd91
 
82dd91
   default:
82dd91
-    DEBUG ((DEBUG_ERROR, "%a: LoadImage(): %r\n", __FUNCTION__, Status));
82dd91
+    DEBUG ((Status == EFI_NOT_FOUND ? DEBUG_INFO : DEBUG_ERROR,
82dd91
+      "%a: LoadImage(): %r\n", __FUNCTION__, Status));
82dd91
     return Status;
82dd91
   }
82dd91
 
82dd91
-- 
82dd91
2.27.0
82dd91