diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-15 20:47:49 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-15 20:47:49 +0200 |
commit | e60bbadbbc036e8d932d88af869d5dd09ed2f92d (patch) | |
tree | 333ac5c33058241656cb9251f85458258a55060f /Kernel | |
parent | a40afc45626387b60f7947588b4f7260e65e75c0 (diff) | |
download | serenity-e60bbadbbc036e8d932d88af869d5dd09ed2f92d.zip |
Kernel: Add LogStream operator<< for PhysicalAddress
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/VM/PhysicalAddress.h | 6 |
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(); +} |