diff options
author | Max Wipfli <mail@maxwipfli.ch> | 2021-07-06 12:55:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-07 15:32:17 +0200 |
commit | 0f8a6e574cdf638f81c73e782937a55d16225fe3 (patch) | |
tree | 21351e26c582b6b467c4ad51b71c49fcef465d64 /Kernel/FileSystem/FileBackedFileSystem.cpp | |
parent | 95f769ea5130a53103626afa0c81379715af6412 (diff) | |
download | serenity-0f8a6e574cdf638f81c73e782937a55d16225fe3.zip |
Kernel: Add formatter function for OwnPtr<KString>
This adds a formatter function for OwnPtr<KString>. This is added mainly
because lots of dbgln() statements generate Strings (such as absolute
paths) which are only used for debugging. Instead of catching possible
OOM situations at all the dbgln() callsites, this makes it possible to
let the formatter code handle those situations by outputting "[out of
memory]" if the OwnPtr is null.
Diffstat (limited to 'Kernel/FileSystem/FileBackedFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions