From d9bf4b4d413a3036c2dcdb48f41ac99502b3c3af Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 17 Feb 2021 16:18:53 +0100 Subject: [PATCH] Shell: Convert dbgprintf() => dbgln() --- Userland/Shell/AST.cpp | 4 +--- 1 file changed, 1 insertion(+), 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 merge_positions(const Optional& left, const Optional& right)