mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Kernel: Add LogStream operator<< for VirtualAddress
This commit is contained in:
parent
945f8eb22a
commit
e27e1b3fb2
Notes:
sideshowbarker
2024-07-19 12:51:37 +09:00
Author: https://github.com/awesomekling
Commit: e27e1b3fb2
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/LogStream.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
class VirtualAddress {
|
||||
|
@ -38,3 +39,8 @@ inline VirtualAddress operator-(const VirtualAddress& a, const VirtualAddress& b
|
|||
{
|
||||
return VirtualAddress(a.get() - b.get());
|
||||
}
|
||||
|
||||
inline const LogStream& operator<<(const LogStream& stream, VirtualAddress value)
|
||||
{
|
||||
return stream << 'V' << value.as_ptr();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue