Skip to content

Commit

Permalink
ShellPkg: add missing linefeed in reset message
Browse files Browse the repository at this point in the history
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4850

When running 'reset -s' no linefeed is printed. This results in the Linux
command line prompt not being printed at the start of a new line:

    Shell> reset -s
    Reset with <null string> (0 bytes)user@workstation:/tmp$

Add the missing linefeed.

Signed-off-by: Heinrich Schuchardt <[email protected]>
  • Loading branch information
xypron authored and mergify[bot] committed Sep 24, 2024
1 parent a131839 commit b8122cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ ShellCommandRunReset (
} else {
String = ShellCommandLineGetValue (Package, L"-s");
DEBUG_CODE (
ShellPrintEx (-1, -1, L"Reset with %s (%d bytes)", String, String != NULL ? StrSize (String) : 0);
ShellPrintEx (-1, -1, L"Reset with %s (%d bytes)\n", String, String != NULL ? StrSize (String) : 0);
);
if (String != NULL) {
gRT->ResetSystem (EfiResetShutdown, EFI_SUCCESS, StrSize (String), (VOID *)String);
Expand Down

0 comments on commit b8122cc

Please sign in to comment.