https://git.reactos.org/?p=reactos.git;a=commitdiff;h=77ba2d496bf90659836226d1695a9f11adeb3d41

commit 77ba2d496bf90659836226d1695a9f11adeb3d41
Author:     Timo Kreuzer <timo.kreu...@reactos.org>
AuthorDate: Thu Oct 3 10:16:21 2024 +0200
Commit:     Timo Kreuzer <timo.kreu...@reactos.org>
CommitDate: Sat Nov 2 17:31:57 2024 +0200

    [FREELDR] Fix some trace prints
---
 boot/freeldr/freeldr/lib/peloader.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/boot/freeldr/freeldr/lib/peloader.c 
b/boot/freeldr/freeldr/lib/peloader.c
index 7596da490db..857dba43258 100644
--- a/boot/freeldr/freeldr/lib/peloader.c
+++ b/boot/freeldr/freeldr/lib/peloader.c
@@ -153,7 +153,7 @@ PeLdrpBindImportName(
     PCHAR ExportName, ForwarderName;
     BOOLEAN Success;
 
-    //TRACE("PeLdrpBindImportName(): DllBase 0x%X, ImageBase 0x%X, ThunkData 
0x%X, ExportDirectory 0x%X, ExportSize %d, ProcessForwards 0x%X\n",
+    //TRACE("PeLdrpBindImportName(): DllBase 0x%p, ImageBase 0x%p, ThunkData 
0x%p, ExportDirectory 0x%p, ExportSize %d, ProcessForwards 0x%X\n",
     //      DllBase, ImageBase, ThunkData, ExportDirectory, ExportSize, 
ProcessForwards);
 
     /* Check passed DllBase param */
@@ -462,8 +462,8 @@ PeLdrpScanImportAddressTable(
     BOOLEAN Success;
     ULONG ExportSize;
 
-    TRACE("PeLdrpScanImportAddressTable(): DllBase 0x%X, "
-          "ImageBase 0x%X, ThunkData 0x%X\n", DllBase, ImageBase, ThunkData);
+    TRACE("PeLdrpScanImportAddressTable(): DllBase 0x%p, "
+          "ImageBase 0x%p, ThunkData 0x%p\n", DllBase, ImageBase, ThunkData);
 
     /* Obtain the export table from the DLL's base */
     if (DllBase == NULL)
@@ -480,7 +480,7 @@ PeLdrpScanImportAddressTable(
                 &ExportSize);
     }
 
-    TRACE("PeLdrpScanImportAddressTable(): ExportDirectory 0x%X\n", 
ExportDirectory);
+    TRACE("PeLdrpScanImportAddressTable(): ExportDirectory 0x%p\n", 
ExportDirectory);
 
     /* If pointer to Export Directory is */
     if (ExportDirectory == NULL)
@@ -589,7 +589,7 @@ PeLdrCheckForLoadedDll(
                to the caller and increase load count for it */
             *LoadedEntry = DataTableEntry;
             DataTableEntry->LoadCount++;
-            TRACE("PeLdrCheckForLoadedDll: LoadedEntry %X\n", DataTableEntry);
+            TRACE("PeLdrCheckForLoadedDll: LoadedEntry 0x%p\n", 
DataTableEntry);
             return TRUE;
         }
 
@@ -623,7 +623,7 @@ PeLdrScanImportDescriptorTable(
         BaseName.Buffer = VaToPa(ScanDTE->BaseDllName.Buffer);
         BaseName.MaximumLength = ScanDTE->BaseDllName.MaximumLength;
         BaseName.Length = ScanDTE->BaseDllName.Length;
-        TRACE("PeLdrScanImportDescriptorTable(): %wZ ImportTable = 0x%X\n",
+        TRACE("PeLdrScanImportDescriptorTable(): %wZ ImportTable = 0x%p\n",
               &BaseName, ImportTable);
     }
 #endif
@@ -897,7 +897,7 @@ PeLdrLoadImage(
     /* This is the real image base, in form of a virtual address */
     VirtualBase = PaToVa(PhysicalBase);
 
-    TRACE("Base PA: 0x%X, VA: 0x%X\n", PhysicalBase, VirtualBase);
+    TRACE("Base PA: 0x%p, VA: 0x%p\n", PhysicalBase, VirtualBase);
 
     /* Copy headers from already read data */
     RtlCopyMemory(PhysicalBase, HeadersBuffer, 
min(NtHeaders->OptionalHeader.SizeOfHeaders, sizeof(HeadersBuffer)));

Reply via email to