diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-17 16:18:53 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-17 16:18:53 +0100 |
commit | d9bf4b4d413a3036c2dcdb48f41ac99502b3c3af (patch) | |
tree | ac4056eb43076407ee7e039a0f80c61d74745798 /Userland/Shell/AST.cpp | |
parent | 2d64ba7b9d79216fb5bc89e09b1642658dd133e9 (diff) | |
download | serenity-d9bf4b4d413a3036c2dcdb48f41ac99502b3c3af.zip |
Shell: Convert dbgprintf() => dbgln()
Diffstat (limited to 'Userland/Shell/AST.cpp')
-rw-r--r-- | Userland/Shell/AST.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Shell/AST.cpp b/Userland/Shell/AST.cpp index eeeaac98d3..98c1ac8eec 100644 --- a/Userland/Shell/AST.cpp +++ b/Userland/Shell/AST.cpp @@ -124,9 +124,7 @@ namespace Shell::AST { static inline void print_indented(const String& str, int indent) { - for (auto i = 0; i < indent; ++i) - dbgprintf(" "); - dbgprintf("%s\n", str.characters()); + dbgln("{}{}", String::repeated(' ', indent * 2), str); } static inline Optional<Position> merge_positions(const Optional<Position>& left, const Optional<Position>& right) |