diff options
Diffstat (limited to 'Kernel/VM/VirtualAddress.h')
-rw-r--r-- | Kernel/VM/VirtualAddress.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/VM/VirtualAddress.h b/Kernel/VM/VirtualAddress.h index fffc136a61..273053d431 100644 --- a/Kernel/VM/VirtualAddress.h +++ b/Kernel/VM/VirtualAddress.h @@ -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(); +} |