]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/Pei/Hob/Hob.c
Display error message when HOB creation fails due to lack of memory.
[mirror_edk2.git] / EdkModulePkg / Core / Pei / Hob / Hob.c
index 259d44b457cd5a7c1a31955e6fea953c77433ef7..9ac672b24d7a1df21bc3213904dd88299b457758 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