mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
Kernel: Add LogStream operator<< for VirtualAddress
This commit is contained in:
parent
945f8eb22a
commit
e27e1b3fb2
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/LogStream.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
class VirtualAddress {
|
||||
|
@ -38,3 +39,8 @@ inline VirtualAddress operator-(const VirtualAddress& a, const VirtualAddress& b
|
|||
{
|
||||
return VirtualAddress(a.get() - b.get());
|
||||
}
|
||||
|
||||
inline const LogStream& operator<<(const LogStream& stream, VirtualAddress value)
|
||||
{
|
||||
return stream << 'V' << value.as_ptr();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue