]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Dxe/Mem/Page.c
MdeModulePkg DxeCore: Enhance "ConvertPages: Incompatible memory types"
authorStar Zeng <star.zeng@intel.com>
Thu, 10 Aug 2017 01:30:42 +0000 (09:30 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 14 Aug 2017 08:46:03 +0000 (16:46 +0800)
commit9a701955a55d094e93c3613a3ae462660551d592
tree6d89a83113511082cae18421d5ec6efa8a51ce19
parentd9af5af8d96866821e50882fbd45686c28aaafed
MdeModulePkg DxeCore: Enhance "ConvertPages: Incompatible memory types"

When double free pages by FreePages() or allocate allocated pages by
AllocatePages() with AllocateAddress type, the code will print debug
message "ConvertPages: Incompatible memory types", but the debug
message is not very obvious for the error paths by FreePages() or
AllocatePages().

Refer https://lists.01.org/pipermail/edk2-devel/2017-August/013075.html
for the discussion.

This patch is to enhance the debug message for the error paths by
FreePages() or AllocatePages.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Andrew Fish <afish@apple.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Core/Dxe/Mem/Page.c