Reactos

[NTOS:MM] Improve debug prints in MmCreateVirtualMappingUnsafe. CORE-14478

+4 -4
+4 -4
ntoskrnl/mm/i386/page.c
··· 673 673 { 674 674 if (Address < MmSystemRangeStart) 675 675 { 676 - DPRINT1("No process\n"); 676 + DPRINT1("NULL process given for user-mode mapping at %p -- %lu pages starting at %Ix\n", Address, PageCount, *Pages); 677 677 KeBugCheck(MEMORY_MANAGEMENT); 678 678 } 679 679 if (PageCount > 0x10000 || 680 680 (ULONG_PTR) Address / PAGE_SIZE + PageCount > 0x100000) 681 681 { 682 - DPRINT1("Page count too large\n"); 682 + DPRINT1("Page count too large for kernel-mode mapping at %p -- %lu pages starting at %Ix\n", Address, PageCount, *Pages); 683 683 KeBugCheck(MEMORY_MANAGEMENT); 684 684 } 685 685 } ··· 687 687 { 688 688 if (Address >= MmSystemRangeStart) 689 689 { 690 - DPRINT1("Setting kernel address with process context\n"); 690 + DPRINT1("Process %p given for kernel-mode mapping at %p -- %lu pages starting at %Ix\n", Process, Address, PageCount, *Pages); 691 691 KeBugCheck(MEMORY_MANAGEMENT); 692 692 } 693 693 if (PageCount > (ULONG_PTR)MmSystemRangeStart / PAGE_SIZE || 694 694 (ULONG_PTR) Address / PAGE_SIZE + PageCount > 695 695 (ULONG_PTR)MmSystemRangeStart / PAGE_SIZE) 696 696 { 697 - DPRINT1("Page Count too large\n"); 697 + DPRINT1("Page count too large for process %p user-mode mapping at %p -- %lu pages starting at %Ix\n", Process, Address, PageCount, *Pages); 698 698 KeBugCheck(MEMORY_MANAGEMENT); 699 699 } 700 700 }