mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Add LogStream operator<< for PhysicalAddress
This commit is contained in:
parent
a40afc4562
commit
e60bbadbbc
Notes:
sideshowbarker
2024-07-19 12:05:55 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e60bbadbbc0
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue