]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg PeiCore: Update debug message to print FV handle correctly
authorLiming Gao <liming.gao@intel.com>
Thu, 28 Dec 2017 06:34:14 +0000 (14:34 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 28 Dec 2017 07:21:39 +0000 (15:21 +0800)
BfvHeader->FvLength is UINT64. Now, it prints with %x. It will cause the
late FvHandle to be as zero. So, its type is converted to UINT32.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Core/Pei/FwVol/FwVol.c

index 7cb295c2c679d40744d3915c9e9ff9afac563347..8009546acdb1a1a91bfaf472f0dc6d5ca402aab8 100644 (file)
@@ -514,7 +514,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