Display error message when HOB creation fails due to lack of memory.
authorxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 11 Jan 2007 08:56:38 +0000 (08:56 +0000)
committerxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 11 Jan 2007 08:56:38 +0000 (08:56 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@2220 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/EdkModulePkg/Core/Pei/Hob/Hob.c

index 259d44b..9ac672b 100644 (file)
@@ -117,6 +117,9 @@ Returns:
                HandOffHob->EfiFreeMemoryBottom;\r
 \r
   if (FreeMemory < Length) {\r
+    DEBUG ((EFI_D_ERROR, "PeiCreateHob fail: Length - 0x%08x\n", (UINTN)Length));\r
+    DEBUG ((EFI_D_ERROR, "  FreeMemoryTop    - 0x%08x\n", (UINTN)HandOffHob->EfiFreeMemoryTop));\r
+    DEBUG ((EFI_D_ERROR, "  FreeMemoryBottom - 0x%08x\n", (UINTN)HandOffHob->EfiFreeMemoryBottom));\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
   \r