diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-11 08:56:38 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-11 08:56:38 +0000 |
commit | 957407060b0b7f78a5303699e237ab1dbcc3cacd (patch) | |
tree | 5b095012445a0a9022553b8fffe05a5b583b9002 /EdkModulePkg/Core/Pei | |
parent | 41a907e423eaa4eec32b924c89474e1285abd012 (diff) | |
download | edk2-957407060b0b7f78a5303699e237ab1dbcc3cacd.zip edk2-957407060b0b7f78a5303699e237ab1dbcc3cacd.tar.gz edk2-957407060b0b7f78a5303699e237ab1dbcc3cacd.tar.bz2 |
Display error message when HOB creation fails due to lack of memory.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2220 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Core/Pei')
-rw-r--r-- | EdkModulePkg/Core/Pei/Hob/Hob.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/EdkModulePkg/Core/Pei/Hob/Hob.c b/EdkModulePkg/Core/Pei/Hob/Hob.c index 259d44b..9ac672b 100644 --- a/EdkModulePkg/Core/Pei/Hob/Hob.c +++ b/EdkModulePkg/Core/Pei/Hob/Hob.c @@ -117,6 +117,9 @@ Returns: HandOffHob->EfiFreeMemoryBottom;
if (FreeMemory < Length) {
+ DEBUG ((EFI_D_ERROR, "PeiCreateHob fail: Length - 0x%08x\n", (UINTN)Length));
+ DEBUG ((EFI_D_ERROR, " FreeMemoryTop - 0x%08x\n", (UINTN)HandOffHob->EfiFreeMemoryTop));
+ DEBUG ((EFI_D_ERROR, " FreeMemoryBottom - 0x%08x\n", (UINTN)HandOffHob->EfiFreeMemoryBottom));
return EFI_OUT_OF_RESOURCES;
}
|