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