1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

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

This commit is contained in:
Andreas Kling 2021-02-12 16:02:47 +01:00
parent 0a45cfee01
commit 5af69d6e93
2 changed files with 1 additions and 6 deletions

View file

@ -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 {};
}

View file

@ -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 {