public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH] OvmfPkg:Fix Hii form name mismatch with EFI variable
@ 2023-07-19  7:45 Wang, Yin
  2023-07-19 13:48 ` Gerd Hoffmann
  0 siblings, 1 reply; 4+ messages in thread
From: Wang, Yin @ 2023-07-19  7:45 UTC (permalink / raw)
  To: devel; +Cc: kraxel, ard.biesheuvel, jordan.l.justen, sunilvl, Yin Wang

Onemore need change beside 16acacf24c ("OvmfPkg: fix PlatformConfig")

Find by sct cases:ExtractConfigConformance
	ExtractConfigFunction
	ExtractConfig_Func fail on RiscVVirtQemu.

Signed-off-by: Yin Wang <yin.wang@intel.com>
---
 OvmfPkg/PlatformDxe/Platform.c       | 2 +-
 OvmfPkg/PlatformDxe/PlatformConfig.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/OvmfPkg/PlatformDxe/Platform.c b/OvmfPkg/PlatformDxe/Platform.c
index cd3bfd554c..c32439683d 100644
--- a/OvmfPkg/PlatformDxe/Platform.c
+++ b/OvmfPkg/PlatformDxe/Platform.c
@@ -279,7 +279,7 @@ ExtractConfig (
     //
     ConfigRequestHdr = HiiConstructConfigHdr (
                          &gOvmfPlatformConfigGuid,
-                         mVariableName,
+                         mHiiFormName,
                          mImageHandle
                          );
     if (ConfigRequestHdr == NULL) {
diff --git a/OvmfPkg/PlatformDxe/PlatformConfig.c b/OvmfPkg/PlatformDxe/PlatformConfig.c
index 4058a324eb..918c4a0de3 100644
--- a/OvmfPkg/PlatformDxe/PlatformConfig.c
+++ b/OvmfPkg/PlatformDxe/PlatformConfig.c
@@ -46,7 +46,7 @@ PlatformConfigSave (
   // them more easily. For now, just save a binary dump.
   //
   Status = gRT->SetVariable (
-                  mVariableName,
+                  mHiiFormName,
                   &gOvmfPlatformConfigGuid,
                   EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS |
                   EFI_VARIABLE_RUNTIME_ACCESS,
@@ -93,7 +93,7 @@ PlatformConfigLoad (
   // (Incompatible changes require a GUID change.)
   //
   Status = GetVariable2 (
-             mVariableName,
+             mHiiFormName,
              &gOvmfPlatformConfigGuid,
              &Data,
              &DataSize
-- 
2.34.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107043): https://edk2.groups.io/g/devel/message/107043
Mute This Topic: https://groups.io/mt/100231365/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-20  1:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-19  7:45 [edk2-devel] [PATCH] OvmfPkg:Fix Hii form name mismatch with EFI variable Wang, Yin
2023-07-19 13:48 ` Gerd Hoffmann
2023-07-19 14:06   ` Wang, Yin
2023-07-20  1:02   ` Wang, Yin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox