Kernel: Add LogStream operator<< for PhysicalAddress

This commit is contained in:
Andreas Kling 2019-09-15 20:47:49 +02:00
parent a40afc4562
commit e60bbadbbc
Notes: sideshowbarker 2024-07-19 12:05:55 +09:00

View file

@ -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();
}