diff options
| author | Qihang Gao <gaoqihang@loongson.cn> | 2026-06-18 06:00:24 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-06-21 19:49:02 +0300 |
| commit | 70741a15d9a714323a5598eac47727e60507e22f (patch) | |
| tree | 77116572509b8af89f1452b98e7ee00a840d7d10 /BaseTools/Source/Python/Workspace/MetaFileParser.py | |
| parent | 0abce029801c1b1a2d84ee7c47534e291405b99b (diff) | |
| download | edk2-70741a15d9a714323a5598eac47727e60507e22f.tar.xz | |
ShellPkg: Fix the issue that the UEFI Shell layout is messed up
Fixes https://github.com/tianocore/edk2/issues/12689
When the UEFI Shell mapping table is empty (NULL), the console layout
becomes corrupted in DEBUG builds. This occurs because the cursor position
for the message map: No mapping found. is computed incorrectly under DEBUG
mode. The presence of DEBUG output from the Shell driver causes
gST->ConOut->Mode->CursorRow to no longer reflect the actual cursor position
on the serial port, leading to misplacement of subsequent output.
This patch replaces the existing print routine with ShellPrintHiiDefaultEx().
The new function automatically calculates the correct cursor position for the
"No mapping found" line, eliminating the dependency on the stale CursorRow
value. As a result, the layout remains consistent regardless of DEBUG message
activity.
Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/MetaFileParser.py')
0 files changed, 0 insertions, 0 deletions
