diff options
author | Krzysztof Koch <krzysztof.koch@arm.com> | 2019-06-28 16:56:57 +0800 |
---|---|---|
committer | Ray Ni <ray.ni@intel.com> | 2019-07-02 17:22:44 +0800 |
commit | 5a119220c1c11e0dce5cc6ef1b3fa8eaef4b3d8e (patch) | |
tree | d589e15f66997d0d2ce5829c984c2d8d7c28149b /ShellPkg | |
parent | 6d9603713c41708fa0a77270a50a0bec525c4607 (diff) | |
download | edk2-5a119220c1c11e0dce5cc6ef1b3fa8eaef4b3d8e.tar.gz |
ShellPkg: acpiview: Fix '\n\n' printing in Table Checksum reporting
Move printing double newline character ('\n\n') from the beginning of
ACPI table checksum validation message to the end of the raw binary
data dump.
This way acpiview table dump looks similar regardless of whether Table
Checksum is validated or not.
Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c index b5965507b4..f9dbbd3544 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c @@ -1,7 +1,7 @@ /** @file
ACPI parser
- Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
+ Copyright (c) 2016 - 2019, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -139,7 +139,7 @@ VerifyChecksum ( ((OriginalAttribute&(BIT4|BIT5|BIT6))>>4))
);
}
- Print (L"\n\nTable Checksum : OK\n\n");
+ Print (L"Table Checksum : OK\n\n");
} else {
IncrementErrorCount ();
if (GetColourHighlighting ()) {
@@ -149,7 +149,7 @@ VerifyChecksum ( ((OriginalAttribute&(BIT4|BIT5|BIT6))>>4))
);
}
- Print (L"\n\nTable Checksum : FAILED (0x%X)\n\n", Checksum);
+ Print (L"Table Checksum : FAILED (0x%X)\n\n", Checksum);
}
if (GetColourHighlighting ()) {
gST->ConOut->SetAttribute (gST->ConOut, OriginalAttribute);
@@ -219,7 +219,7 @@ DumpRaw ( // Print ASCII data for the final line.
AsciiBuffer[AsciiBufferIndex] = '\0';
- Print (L" %a", AsciiBuffer);
+ Print (L" %a\n\n", AsciiBuffer);
}
/**
|