From nobody Sun May 5 05:21:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+53643+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+53643+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1580713606055130.4435052333804; Sun, 2 Feb 2020 23:06:46 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id OD2SYY1788612xqFiLeYSuv1; Sun, 02 Feb 2020 23:06:43 -0800 X-Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web09.2115.1580713602936238032 for ; Sun, 02 Feb 2020 23:06:43 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Feb 2020 23:06:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,396,1574150400"; d="scan'208";a="224199743" X-Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.158.81]) by fmsmga007.fm.intel.com with ESMTP; 02 Feb 2020 23:06:40 -0800 From: "Zeng, Star" To: devel@edk2.groups.io Cc: Star Zeng , Eric Dong , Ray Ni , Laszlo Ersek Subject: [edk2-devel] [PATCH] UefiCpuPkg RegisterCpuFeaturesLib: Use %08x to print CacheControl Index Date: Mon, 3 Feb 2020 15:06:31 +0800 Message-Id: <20200203070631.14332-1-star.zeng@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,star.zeng@intel.com X-Gm-Message-State: hRJ2SOrwsFBZ5RXx6Px2mZXhx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1580713603; bh=KloRLtwDoj0WveGN9PuIPKpl2+RVxXLjK/pulg8pPug=; h=Cc:Date:From:Reply-To:Subject:To; b=R20mDb4ZHQE0B8wjvjFtKrDU2KpBIZEJ6y2RSVGx4pNPgGV7EQV0vdpG6p35xyGhBmr tn75swltmd4kkL7WSnB6FOTR+tTAYtODMnRNfpRYdCDcVxWfcYXA5ic4LsbdSNKv74xpL vjTfo6D4nGm7GrJHKukc8wbxK45R/B+dssg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Instead of %08lx, use %08x to print CacheControl Index as it is UINT32 type. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Signed-off-by: Star Zeng --- .../Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitializ= e.c b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c index 0a4fcff033a3..1a02809b0e7c 100644 --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c @@ -465,7 +465,7 @@ DumpRegisterTableOnProcessor ( case CacheControl: DEBUG (( DebugPrintErrorLevel, - "Processor: %04d: Index %04d, CACHE: %08lx, Bit Start: %02d, Bit L= ength: %02d, Value: %016lx\r\n", + "Processor: %04d: Index %04d, CACHE: %08x, Bit Start: %02d, Bit Le= ngth: %02d, Value: %016lx\r\n", ProcessorNumber, FeatureIndex, RegisterTableEntry->Index, --=20 2.21.0.windows.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 (#53643): https://edk2.groups.io/g/devel/message/53643 Mute This Topic: https://groups.io/mt/70940928/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-