From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0C17782048 for ; Thu, 15 Dec 2016 22:04:23 -0800 (PST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP; 15 Dec 2016 22:04:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,356,1477983600"; d="scan'208";a="40448158" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga004.jf.intel.com with ESMTP; 15 Dec 2016 22:04:22 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 15 Dec 2016 22:04:22 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.54]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.235]) with mapi id 14.03.0248.002; Fri, 16 Dec 2016 14:04:11 +0800 From: "Zeng, Star" To: "Zhang, Chao B" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Zeng, Star" Thread-Topic: [PATCH] SecurityPkg: Tcg2Dxe: Report correct FinalEventLog size Thread-Index: AQHSV1uIsLVuldrB5U6RA9963Z70aKEKFR6A Date: Fri, 16 Dec 2016 06:04:10 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B7CEFA0@shsmsx102.ccr.corp.intel.com> References: <1481865365-16888-1-git-send-email-chao.b.zhang@intel.com> In-Reply-To: <1481865365-16888-1-git-send-email-chao.b.zhang@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] SecurityPkg: Tcg2Dxe: Report correct FinalEventLog size X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2016 06:04:23 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Star Zeng -----Original Message----- From: Zhang, Chao B=20 Sent: Friday, December 16, 2016 1:16 PM To: edk2-devel@lists.01.org Cc: Yao, Jiewen ; Zeng, Star ; Z= hang, Chao B Subject: [PATCH] SecurityPkg: Tcg2Dxe: Report correct FinalEventLog size Update debug log to report correct FinalEventLog size. Cc: Yao Jiewen Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang --- SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c b/SecurityPkg/Tcg/Tcg2Dxe/Tc= g2Dxe.c index cf2fe4e..556ef33 100644 --- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c +++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c @@ -856,7 +856,7 @@ TcgDxeLogEvent ( // (mTcgDxeData.FinalEventsTable[Index])->NumberOfEvents ++; DEBUG ((EFI_D_INFO, "FinalEventsTable->NumberOfEvents - 0x%x\n", (mT= cgDxeData.FinalEventsTable[Index])->NumberOfEvents)); - DEBUG ((EFI_D_INFO, " Size - 0x%x\n", (UINTN)EventLogAreaStruct->La= stEvent - (UINTN)mTcgDxeData.FinalEventsTable[Index])); + DEBUG ((EFI_D_INFO, " Size - 0x%x\n", (UINTN)EventLogAreaStruct->Ev= entLogSize)); } } =20 --=20 1.9.5.msysgit.1