Explorar el Código

Kernel: Write to debug log when creating new kmalloc subheaps

Andreas Kling hace 3 años
padre
commit
d58880b5b0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Kernel/Heap/kmalloc.cpp

+ 1 - 0
Kernel/Heap/kmalloc.cpp

@@ -55,6 +55,7 @@ struct KmallocGlobalData {
 
     void add_subheap(u8* storage, size_t storage_size)
     {
+        dbgln("Adding kmalloc subheap @ {} with size {}", storage, storage_size);
         auto* subheap = new (storage) KmallocSubheap(storage + PAGE_SIZE, storage_size - PAGE_SIZE);
         subheaps.append(*subheap);
     }