From nobody Wed Feb 11 05:35:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+94882+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+94882+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1665393680; cv=none; d=zohomail.com; s=zohoarc; b=WIdjiBMBLTV+C3xK9mY60vgCC94XB739PXXiXPP+cIhTrfsKnTvbobafDlEVrblLm+zcUlwNIN0fupk7yN/1d20B7L6vjQfmekDPR0SRq3gomyP4s4vNAzH5jBALo8UoLe3SIeb7uPSRORTkGh5abUwgjVZW6HKIIuh2mAmmtfo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665393680; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=DpKq/5EtA80U8KuXaFKckdyWjh6Q8H9oPT9uhMeEBRg=; b=Sqj5x3Ux+HeODrNjG5VOKzWx3O2DVn+b3aYyC13FoaqLwjV5Mb0enpT3Xgt/CfAwgokBPt3Pg3nj3z+Af7Vrrxxe0PB7M7CutpWW9oK5UWNxGc/th5UppRFo8ilAy0iDwpmk1UeyQUUAvlAz0ScGSoYWF9vvhDpg5qCo0+snshM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+94882+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1665393680969573.6822726822445; Mon, 10 Oct 2022 02:21:20 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id EYbIYY1788612xJWdaYXiH8Z; Mon, 10 Oct 2022 02:21:19 -0700 X-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 X-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) X-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: [edk2-devel] [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> In-Reply-To: <20221010092058.118714-1-Pierre.Gondois@arm.com> References: <20221010092058.118714-1-Pierre.Gondois@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com X-Gm-Message-State: aveOZWx9n9fw0015qYNtTFm0x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1665393679; bh=kdduw/qWm1Ugr7XtSCRz26qiA0LnYusvcKFJuoqXChQ=; h=Cc:Date:From:Reply-To:Subject:To; b=Ad4gsCykHwk3/BBX4hzSiZ5d5jNQOAsjgC8LmpI5n9zUHsHEta8yFve3yaEgXA6AhtQ u/+IJdeGGyW8uy/DjEoYH8gTZZxqEsymQ0j46/ov7tXkb+KnPkp6UlgG47nfbwEqMHOcJ CnFBu65s9TiV/0jqUL8zy8rMWuTGkAZG2ns= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1665393681487100002 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Sami Mujawar --- .../ConfigurationManagerObjectParser.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationMa= nagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/Config= urationManagerObjectParser.c index 08b4f60dfbae..13e6c0e321c4 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.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 AcpiGenericAddressParser[= ] =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_STRUC= TURE), --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94882): https://edk2.groups.io/g/devel/message/94882 Mute This Topic: https://groups.io/mt/94232520/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-