]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
DynamicTablesPkg: Use correct print formatter
authorPierre Gondois <pierre.gondois@arm.com>
Mon, 10 Oct 2022 09:20:45 +0000 (11:20 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 31 Oct 2022 12:32:32 +0000 (12:32 +0000)
In C, the 'long long' types are 64-bits. The 'll' printf length
specifier should be used to pring these values. Just '%x' allows to
print values that are on 16-bits or more. Use that instead.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c

index 08b4f60dfbaeb65ad2a6ce8299e9513fe04b7ab0..13e6c0e321c4c60d124a4c6cfbf10c78c92bf759 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Configuration Manager Object parser.\r
 \r
-  Copyright (c) 2021, ARM Limited. All rights reserved.<BR>\r
+  Copyright (c) 2021 - 2022, ARM Limited. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -384,12 +384,12 @@ STATIC CONST CM_OBJ_PARSER  AcpiGenericAddressParser[] = {
 /** A parser for EArmObjLpiInfo.\r
 */\r
 STATIC CONST CM_OBJ_PARSER  CmArmLpiInfoParser[] = {\r
-  { "MinResidency",             4,                                               "0x%llx", NULL },\r
-  { "WorstCaseWakeLatency",     4,                                               "0x%llx", NULL },\r
-  { "Flags",                    4,                                               "0x%llx", NULL },\r
-  { "ArchFlags",                4,                                               "0x%llx", NULL },\r
-  { "ResCntFreq",               4,                                               "0x%llx", NULL },\r
-  { "EnableParentState",        4,                                               "0x%llx", NULL },\r
+  { "MinResidency",             4,                                               "0x%x",   NULL },\r
+  { "WorstCaseWakeLatency",     4,                                               "0x%x",   NULL },\r
+  { "Flags",                    4,                                               "0x%x",   NULL },\r
+  { "ArchFlags",                4,                                               "0x%x",   NULL },\r
+  { "ResCntFreq",               4,                                               "0x%x",   NULL },\r
+  { "EnableParentState",        4,                                               "0x%x",   NULL },\r
   { "IsInteger",                1,                                               "%d",     NULL },\r
   { "IntegerEntryMethod",       8,                                               "0x%llx", NULL },\r
   { "RegisterEntryMethod",      sizeof (EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE),\r