mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Add LogStream operator<< for Range
This commit is contained in:
parent
21ee24b995
commit
10e0e13bf3
Notes:
sideshowbarker
2024-07-19 12:26:20 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/10e0e13bf32
@ -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…
Reference in New Issue
Block a user