mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:37:35 +00:00
Kernel: Convert klog() to dmesgln() in RangeAllocator
This commit is contained in:
parent
0a45cfee01
commit
5af69d6e93
2 changed files with 1 additions and 6 deletions
|
@ -161,7 +161,7 @@ Optional<Range> RangeAllocator::allocate_anywhere(size_t size, size_t alignment)
|
||||||
carve_at_index(i, allocated_range);
|
carve_at_index(i, allocated_range);
|
||||||
return allocated_range;
|
return allocated_range;
|
||||||
}
|
}
|
||||||
klog() << "RangeAllocator: Failed to allocate anywhere: " << size << ", " << alignment;
|
dmesgln("RangeAllocator: Failed to allocate anywhere: size={}, alignment={}", size, alignment);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,11 +106,6 @@ private:
|
||||||
mutable SpinLock<u8> m_lock;
|
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 {
|
namespace AK {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue