diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-26 10:43:20 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-26 10:43:20 +0000 |
commit | af9e69ff1971ebe4216888ee31498dd1ba7d9b6f (patch) | |
tree | 85c49d823802da9cdd15132b07568d5530bee36d | |
parent | e75ac0cce3707846e730259f6acdec437b4031dd (diff) | |
download | edk2-af9e69ff1971ebe4216888ee31498dd1ba7d9b6f.zip edk2-af9e69ff1971ebe4216888ee31498dd1ba7d9b6f.tar.gz edk2-af9e69ff1971ebe4216888ee31498dd1ba7d9b6f.tar.bz2 |
Add debug info when allocate pages failed in PeiMain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2141 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | EdkModulePkg/Core/Pei/Memory/MemoryServices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkModulePkg/Core/Pei/Memory/MemoryServices.c b/EdkModulePkg/Core/Pei/Memory/MemoryServices.c index 277f60b..88046c7 100644 --- a/EdkModulePkg/Core/Pei/Memory/MemoryServices.c +++ b/EdkModulePkg/Core/Pei/Memory/MemoryServices.c @@ -245,7 +245,7 @@ Returns: Hob.HandoffInformationTable->EfiFreeMemoryBottom) {
DEBUG ((EFI_D_ERROR, "AllocatePages failed: No 0x%x Pages is available.\n", Pages));
DEBUG ((EFI_D_ERROR, "There is only left 0x%x pages memory resource to be allocated.\n", \
- (Hob.HandoffInformationTable->EfiFreeMemoryTop - Hob.HandoffInformationTable->EfiFreeMemoryBottom)/EFI_PAGE_SIZE));
+ EFI_SIZE_TO_PAGES ((UINTN) (Hob.HandoffInformationTable->EfiFreeMemoryTop - Hob.HandoffInformationTable->EfiFreeMemoryBottom))));
return EFI_OUT_OF_RESOURCES;
} else {
//
|