From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web09.4230.1665393678933408094 for ; Mon, 10 Oct 2022 02:21:19 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pierre.gondois@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A4A051570; Mon, 10 Oct 2022 02:21:24 -0700 (PDT) Received: from pierre123.arm.com (unknown [10.57.34.234]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B16283F792; Mon, 10 Oct 2022 02:21:17 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Sami Mujawar , Alexei Fedorov Subject: [PATCH 01/14] DynamicTablesPkg: Use correct print formatter Date: Mon, 10 Oct 2022 11:20:45 +0200 Message-Id: <20221010092058.118714-2-Pierre.Gondois@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221010092058.118714-1-Pierre.Gondois@arm.com> References: <20221010092058.118714-1-Pierre.Gondois@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Pierre Gondois 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 --- .../ConfigurationManagerObjectParser.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/Configuration= ManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/Co= nfigurationManagerObjectParser.c index 08b4f60dfbae..13e6c0e321c4 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManager= ObjectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManager= ObjectParser.c @@ -1,7 +1,7 @@ /** @file Configuration Manager Object parser. =20 - Copyright (c) 2021, ARM Limited. All rights reserved.
+ Copyright (c) 2021 - 2022, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -384,12 +384,12 @@ STATIC CONST CM_OBJ_PARSER AcpiGenericAddressParse= r[] =3D { /** A parser for EArmObjLpiInfo. */ STATIC CONST CM_OBJ_PARSER CmArmLpiInfoParser[] =3D { - { "MinResidency", 4, = "0x%llx", NULL }, - { "WorstCaseWakeLatency", 4, = "0x%llx", NULL }, - { "Flags", 4, = "0x%llx", NULL }, - { "ArchFlags", 4, = "0x%llx", NULL }, - { "ResCntFreq", 4, = "0x%llx", NULL }, - { "EnableParentState", 4, = "0x%llx", NULL }, + { "MinResidency", 4, = "0x%x", NULL }, + { "WorstCaseWakeLatency", 4, = "0x%x", NULL }, + { "Flags", 4, = "0x%x", NULL }, + { "ArchFlags", 4, = "0x%x", NULL }, + { "ResCntFreq", 4, = "0x%x", NULL }, + { "EnableParentState", 4, = "0x%x", NULL }, { "IsInteger", 1, = "%d", NULL }, { "IntegerEntryMethod", 8, = "0x%llx", NULL }, { "RegisterEntryMethod", sizeof (EFI_ACPI_6_3_GENERIC_ADDRESS_STR= UCTURE), --=20 2.25.1