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