diff options
Diffstat (limited to 'AK')
-rw-r--r-- | AK/LogStream.cpp | 4 | ||||
-rw-r--r-- | AK/LogStream.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/AK/LogStream.cpp b/AK/LogStream.cpp index 26f1ed5238..8bcbe6ffa7 100644 --- a/AK/LogStream.cpp +++ b/AK/LogStream.cpp @@ -209,7 +209,7 @@ const LogStream& operator<<(const LogStream& stream, float value) #endif -const LogStream& operator<<(const LogStream& stream, ReadonlyBytes bytes) +void dump_bytes(ReadonlyBytes bytes) { StringBuilder builder; @@ -247,7 +247,7 @@ const LogStream& operator<<(const LogStream& stream, ReadonlyBytes bytes) builder.append(" }"); - return stream << builder.to_string(); + dbg() << builder.to_string(); } } diff --git a/AK/LogStream.h b/AK/LogStream.h index aa975c6540..cfe88f1d14 100644 --- a/AK/LogStream.h +++ b/AK/LogStream.h @@ -184,7 +184,6 @@ const LogStream& operator<<(const LogStream& stream, Span<T> span) } const LogStream& operator<<(const LogStream&, const void*); -const LogStream& operator<<(const LogStream&, ReadonlyBytes); inline const LogStream& operator<<(const LogStream& stream, char value) { @@ -205,6 +204,8 @@ KernelLogStream klog(); DebugLogStream klog(); #endif +void dump_bytes(ReadonlyBytes); + } using AK::dbg; |