From e60bbadbbc036e8d932d88af869d5dd09ed2f92d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 15 Sep 2019 20:47:49 +0200 Subject: [PATCH] Kernel: Add LogStream operator<< for PhysicalAddress --- Kernel/VM/PhysicalAddress.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 #include 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(); +}