[FREELDR] FrLdrHeapCreate: Show the memory type in the ERR().
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 10 Mar 2024 15:35:25 +0000 (16:35 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 11 Mar 2024 21:37:36 +0000 (22:37 +0100)
boot/freeldr/freeldr/lib/mm/heap.c

index 7f2fda0..35adcd3 100644 (file)
@@ -71,6 +71,7 @@ FrLdrHeapCreate(
     PHEAP_BLOCK Block;
     SIZE_T Remaining;
     USHORT PreviousSize;
+
     TRACE("HeapCreate(MemoryType=%ld)\n", MemoryType);
 
     /* Allocate some memory for the heap */
@@ -78,7 +79,7 @@ FrLdrHeapCreate(
     Heap = MmAllocateMemoryWithType(MaximumSize, MemoryType);
     if (!Heap)
     {
-        ERR("HEAP: Failed to allocate heap of size 0x%lx, Type\n",
+        ERR("HEAP: Failed to allocate heap of size 0x%lx, Type %lu\n",
             MaximumSize, MemoryType);
         return NULL;
     }
@@ -445,6 +446,7 @@ FrLdrHeapFreeEx(
 #if DBG && !defined(_M_ARM)
     ULONGLONG Time = __rdtsc();
 #endif
+
     TRACE("HeapFree(%p, %p)\n", HeapHandle, Pointer);
     ASSERT(Tag != 'dnE#');