Kernel: Add formatter for VirtualAddress

This commit is contained in:
Andreas Kling 2020-12-25 12:51:11 +01:00
commit 73e151edd0
Notes: sideshowbarker 2024-07-19 00:37:05 +09:00
3 changed files with 44 additions and 0 deletions

View file

@ -75,3 +75,10 @@ inline const LogStream& operator<<(const LogStream& stream, VirtualAddress value
{
return stream << 'V' << value.as_ptr();
}
namespace AK {
template<>
struct Formatter<VirtualAddress> : Formatter<StringView> {
void format(TypeErasedFormatParams&, FormatBuilder&, const VirtualAddress&);
};
}