From 19aeb71d154bb69310693d8567b9b3331ef6bf99 Mon Sep 17 00:00:00 2001 From: Ralf Donau Date: Mon, 23 Aug 2021 22:22:29 +0200 Subject: [PATCH] Shell: Use String::join for the command in timing report --- Userland/Shell/Builtin.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp index b59cff5051..3e8938d118 100644 --- a/Userland/Shell/Builtin.cpp +++ b/Userland/Shell/Builtin.cpp @@ -9,6 +9,7 @@ #include "Shell/Formatter.h" #include #include +#include #include #include #include @@ -951,10 +952,7 @@ int Shell::builtin_time(int argc, const char** argv) warnln("Timing report:"); warnln("=============="); - warn("Command: "); - for (auto& string : args) - warn("{} ", string); - warnln(""); + warnln("Command: {}", String::join(' ', args)); warnln("Average time: {} ms", average); warnln("Excluding first: {} ms", average_excluding_first); }