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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user