summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-15 20:47:49 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-15 20:47:49 +0200
commite60bbadbbc036e8d932d88af869d5dd09ed2f92d (patch)
tree333ac5c33058241656cb9251f85458258a55060f
parenta40afc45626387b60f7947588b4f7260e65e75c0 (diff)
downloadserenity-e60bbadbbc036e8d932d88af869d5dd09ed2f92d.zip
Kernel: Add LogStream operator<< for PhysicalAddress
-rw-r--r--Kernel/VM/PhysicalAddress.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/VM/PhysicalAddress.h b/Kernel/VM/PhysicalAddress.h
index 974db05592..7ba09edd28 100644
--- a/Kernel/VM/PhysicalAddress.h
+++ b/Kernel/VM/PhysicalAddress.h
@@ -1,5 +1,6 @@
#pragma once
+#include <AK/LogStream.h>
#include <AK/Types.h>
class PhysicalAddress {
@@ -32,3 +33,8 @@ public:
private:
u32 m_address { 0 };
};
+
+inline const LogStream& operator<<(const LogStream& stream, PhysicalAddress value)
+{
+ return stream << 'P' << value.as_ptr();
+}