summaryrefslogtreecommitdiff
path: root/ShellPkg/Library
diff options
context:
space:
mode:
authorKrzysztof Koch <krzysztof.koch@arm.com>2019-06-28 18:24:38 +0800
committerRay Ni <ray.ni@intel.com>2019-07-02 17:22:46 +0800
commit5ed3b5624f91b2738a90598ea8a9c085cfab851e (patch)
tree771e036eab8f25be20bb575ebb821b09b7dbc594 /ShellPkg/Library
parent687546ddd5de9cf4c488d8485bbb15f62153a458 (diff)
downloadedk2-5ed3b5624f91b2738a90598ea8a9c085cfab851e.zip
edk2-5ed3b5624f91b2738a90598ea8a9c085cfab851e.tar.gz
edk2-5ed3b5624f91b2738a90598ea8a9c085cfab851e.tar.bz2
ShellPkg: acpiview: Remove duplicate indentation in IORT parser
Remove redundant whitespace characters at the beginning of the strings describing IORT table field names. When dumping ACPI table contents, the indentation level for printing field names is controled using the 'Indent' argument to the 'ParseAcpi' function. In the IORT acpiview parser, both 'Indent' and extra whitespace characters are used for indentation, which results in excess indentation. 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/Library')
-rw-r--r--ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c
index a91a4f9..93f78e1 100644
--- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c
+++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c
@@ -131,19 +131,19 @@ STATIC CONST ACPI_PARSER IortNodeSmmuV1V2Parser[] = {
An ACPI_PARSER array describing the SMMUv1/2 Node Interrupt Array.
**/
STATIC CONST ACPI_PARSER InterruptArrayParser[] = {
- {L" Interrupt GSIV", 4, 0, L"0x%x", NULL, NULL, NULL, NULL},
- {L" Flags", 4, 4, L"0x%x", NULL, NULL, NULL, NULL}
+ {L"Interrupt GSIV", 4, 0, L"0x%x", NULL, NULL, NULL, NULL},
+ {L"Flags", 4, 4, L"0x%x", NULL, NULL, NULL, NULL}
};
/**
An ACPI_PARSER array describing the IORT ID Mapping.
**/
STATIC CONST ACPI_PARSER IortNodeIdMappingParser[] = {
- {L" Input base", 4, 0, L"0x%x", NULL, NULL, NULL, NULL},
- {L" Number of IDs", 4, 4, L"0x%x", NULL, NULL, NULL, NULL},
- {L" Output base", 4, 8, L"0x%x", NULL, NULL, NULL, NULL},
- {L" Output reference", 4, 12, L"0x%x", NULL, NULL, NULL, NULL},
- {L" Flags", 4, 16, L"0x%x", NULL, NULL, NULL, NULL}
+ {L"Input base", 4, 0, L"0x%x", NULL, NULL, NULL, NULL},
+ {L"Number of IDs", 4, 4, L"0x%x", NULL, NULL, NULL, NULL},
+ {L"Output base", 4, 8, L"0x%x", NULL, NULL, NULL, NULL},
+ {L"Output reference", 4, 12, L"0x%x", NULL, NULL, NULL, NULL},
+ {L"Flags", 4, 16, L"0x%x", NULL, NULL, NULL, NULL}
};
/**
@@ -170,14 +170,14 @@ STATIC CONST ACPI_PARSER IortNodeItsParser[] = {
ValidateItsIdMappingCount,
ValidateItsIdArrayReference
),
- {L" Number of ITSs", 4, 16, L"%d", NULL, (VOID**)&ItsCount, NULL}
+ {L"Number of ITSs", 4, 16, L"%d", NULL, (VOID**)&ItsCount, NULL}
};
/**
An ACPI_PARSER array describing the ITS ID.
**/
STATIC CONST ACPI_PARSER ItsIdParser[] = {
- { L" GIC ITS Identifier", 4, 0, L"%d", NULL, NULL, NULL }
+ { L"GIC ITS Identifier", 4, 0, L"%d", NULL, NULL, NULL }
};
/**