summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-17 16:18:53 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-17 16:18:53 +0100
commitd9bf4b4d413a3036c2dcdb48f41ac99502b3c3af (patch)
treeac4056eb43076407ee7e039a0f80c61d74745798 /Userland
parent2d64ba7b9d79216fb5bc89e09b1642658dd133e9 (diff)
downloadserenity-d9bf4b4d413a3036c2dcdb48f41ac99502b3c3af.zip
Shell: Convert dbgprintf() => dbgln()
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Shell/AST.cpp4
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)