1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:07:35 +00:00

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

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