mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
Kernel: Add LogStream operator<< for Range
This commit is contained in:
parent
21ee24b995
commit
10e0e13bf3
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <Kernel/VM/VirtualAddress.h>
|
||||
|
||||
|
@ -61,3 +62,8 @@ private:
|
|||
|
||||
Vector<Range> m_available_ranges;
|
||||
};
|
||||
|
||||
inline const LogStream& operator<<(const LogStream& stream, const Range& value)
|
||||
{
|
||||
return stream << String::format("Range(%x-%x)", value.base().get(), value.end().get() - 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue