From fa018d3ba120497ed5b390ef83bde68b50b23408 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 30 Oct 2021 14:06:55 +0200 Subject: [PATCH] Kernel: Fix common misuse of KString in debug messages --- Kernel/KString.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Kernel/KString.h b/Kernel/KString.h index 1a2af2f318d..44fc324d603 100644 --- a/Kernel/KString.h +++ b/Kernel/KString.h @@ -63,6 +63,14 @@ struct Formatter> : Formatter { } }; +template<> +struct Formatter> : Formatter { + void format(FormatBuilder& builder, NonnullOwnPtr const& value) + { + Formatter::format(builder, value->view()); + } +}; + template<> struct Traits> : public GenericTraits> { using PeekType = Kernel::KString*;