summaryrefslogtreecommitdiff
path: root/Kernel/VM
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-06 10:28:46 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-06 10:28:46 +0200
commite27e1b3fb24c743c75fd4cc3a9653b2d1cb1f2f5 (patch)
tree6a4fe4b2fa02d66412eeea4662023ba003796c38 /Kernel/VM
parent945f8eb22a48718012268473b8172f24fa1a98ae (diff)
downloadserenity-e27e1b3fb24c743c75fd4cc3a9653b2d1cb1f2f5.zip
Kernel: Add LogStream operator<< for VirtualAddress
Diffstat (limited to 'Kernel/VM')
-rw-r--r--Kernel/VM/VirtualAddress.h6
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();
+}