Browse Source

Kernel: Convert klog() to dmesgln() in RangeAllocator

Andreas Kling 4 years ago
parent
commit
5af69d6e93
2 changed files with 1 additions and 6 deletions
  1. 1 1
      Kernel/VM/RangeAllocator.cpp
  2. 0 5
      Kernel/VM/RangeAllocator.h

+ 1 - 1
Kernel/VM/RangeAllocator.cpp

@@ -161,7 +161,7 @@ Optional<Range> RangeAllocator::allocate_anywhere(size_t size, size_t alignment)
         carve_at_index(i, allocated_range);
         return allocated_range;
     }
-    klog() << "RangeAllocator: Failed to allocate anywhere: " << size << ", " << alignment;
+    dmesgln("RangeAllocator: Failed to allocate anywhere: size={}, alignment={}", size, alignment);
     return {};
 }
 

+ 0 - 5
Kernel/VM/RangeAllocator.h

@@ -106,11 +106,6 @@ private:
     mutable SpinLock<u8> m_lock;
 };
 
-inline const LogStream& operator<<(const LogStream& stream, const Range& value)
-{
-    return stream << String::formatted("Range({:08x}-{:08x})", value.base().get(), value.end().get() - 1);
-}
-
 }
 
 namespace AK {