summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Gang <yanggang@byosoft.com.cn>2024-12-20 11:13:56 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-01-24 19:44:08 +0000
commit0df3729ad6133362d06e95ba2a42083ae286d98a (patch)
tree61a2d381e1ed38929e5e295b34eaec0cab46eaab
parent1f19c3d6eecd1d2854073527720c78aae931fc77 (diff)
downloadedk2-0df3729ad6133362d06e95ba2a42083ae286d98a.tar.gz
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 <yanggang@byosoft.com.cn>
-rw-r--r--ShellPkg/DynamicCommand/HttpDynamicCommand/Http.c2
1 files changed, 1 insertions, 1 deletions
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
);