]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Pei/FwVol/FwVol.c
MdeModulePkg PeiCore: Check error status when processing boot FV
[mirror_edk2.git] / MdeModulePkg / Core / Pei / FwVol / FwVol.c
index 7cb295c2c679d40744d3915c9e9ff9afac563347..4150b338b211847a17cf2d2968a11b11e1e46976 100644 (file)
@@ -495,12 +495,13 @@ PeiInitializeFv (
   //\r
   // Get handle of BFV\r
   //\r
-  FvPpi->ProcessVolume (\r
-           FvPpi, \r
-           SecCoreData->BootFirmwareVolumeBase,\r
-           (UINTN)BfvHeader->FvLength,\r
-           &FvHandle\r
-           );\r
+  Status = FvPpi->ProcessVolume (\r
+                    FvPpi,\r
+                    SecCoreData->BootFirmwareVolumeBase,\r
+                    (UINTN)BfvHeader->FvLength,\r
+                    &FvHandle\r
+                    );\r
+  ASSERT_EFI_ERROR (Status);\r
 \r
   //\r
   // Update internal PEI_CORE_FV array.\r
@@ -514,7 +515,7 @@ PeiInitializeFv (
     "The %dth FV start address is 0x%11p, size is 0x%08x, handle is 0x%p\n", \r
     (UINT32) PrivateData->FvCount, \r
     (VOID *) BfvHeader, \r
-    BfvHeader->FvLength,\r
+    (UINT32) BfvHeader->FvLength,\r
     FvHandle\r
     ));    \r
   PrivateData->FvCount ++;\r