Kernel: Add LogStream operator<< for Range

This commit is contained in:
Andreas Kling 2019-08-29 20:54:50 +02:00
parent 21ee24b995
commit 10e0e13bf3
Notes: sideshowbarker 2024-07-19 12:26:20 +09:00

View File

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