[LDR] Restore Logging when images overlap CORE-17635
authorJoachim Henze <Joachim.Henze@reactos.org>
Wed, 16 Jun 2021 11:38:51 +0000 (13:38 +0200)
committerJoachim Henze <Joachim.Henze@reactos.org>
Wed, 16 Jun 2021 11:38:51 +0000 (13:38 +0200)
This reverts
0.4.13-dev-284-g 74be88ac473425fc99e9a363ba8cd604702262bf

The logging is helpful to alert us when we should really
recalculate the base addresses for performance reasons.
Spams a bit sometimes, sure, but it's worth it!

dll/ntdll/ldr/ldrutils.c

index 5b1ec30..27fa42b 100644 (file)
@@ -1335,7 +1335,7 @@ SkipCheck:
         ImageBase = (ULONG_PTR)NtHeaders->OptionalHeader.ImageBase;
         ImageEnd = ImageBase + ViewSize;
 
-        DPRINT("LDR: LdrpMapDll Relocating Image Name %ws (%p-%p -> %p)\n", DllName, (PVOID)ImageBase, (PVOID)ImageEnd, ViewBase);
+        DPRINT1("LDR: LdrpMapDll Relocating Image Name %ws (%p-%p -> %p)\n", DllName, (PVOID)ImageBase, (PVOID)ImageEnd, ViewBase);
 
         /* Scan all the modules */
         ListHead = &Peb->Ldr->InLoadOrderModuleList;
@@ -1374,7 +1374,7 @@ SkipCheck:
             RtlInitUnicodeString(&OverlapDll, L"Dynamically Allocated Memory");
         }
 
-        DPRINT("Overlapping DLL: %wZ\n", &OverlapDll);
+        DPRINT1("Overlapping DLL: %wZ\n", &OverlapDll);
 
         /* Are we dealing with a DLL? */
         if (LdrEntry->Flags & LDRP_IMAGE_DLL)