From 0df3729ad6133362d06e95ba2a42083ae286d98a Mon Sep 17 00:00:00 2001 From: Yang Gang Date: Fri, 20 Dec 2024 11:13:56 +0800 Subject: [PATCH] ShellPkg Http.c: Remove extra `\n` when using `-m` param There is already `PRINT_HII (STRING_TOKEN (STR_GEN_CRLF), NULL);` after `DownloadFile()`, remove this extra `\n` to avoid printing extra blank lines. Signed-off-by: Yang Gang --- ShellPkg/DynamicCommand/HttpDynamicCommand/Http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/DynamicCommand/HttpDynamicCommand/Http.c b/ShellPkg/DynamicCommand/HttpDynamicCommand/Http.c index 37afefd80b..d67f9af3b7 100644 --- a/ShellPkg/DynamicCommand/HttpDynamicCommand/Http.c +++ b/ShellPkg/DynamicCommand/HttpDynamicCommand/Http.c @@ -1690,7 +1690,7 @@ GetResponse ( if (!EFI_ERROR (gRT->GetTime (&EndTime, NULL))) { ElapsedSeconds = EfiTimeToEpoch (&EndTime) - EfiTimeToEpoch (&StartTime); Print ( - L",%a%Lus\n", + L",%a%Lus", ElapsedSeconds ? " " : " < ", ElapsedSeconds > 1 ? (UINT64)ElapsedSeconds : 1 );