From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 17FFC82030 for ; Thu, 15 Dec 2016 21:34:36 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP; 15 Dec 2016 21:34:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,356,1477983600"; d="scan'208";a="43135473" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga005.fm.intel.com with ESMTP; 15 Dec 2016 21:34:35 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 15 Dec 2016 21:34:35 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 15 Dec 2016 21:34:34 -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 13:34:33 +0800 From: "Yao, Jiewen" To: "Zhang, Chao B" , "edk2-devel@lists.01.org" CC: "Zhang, Chao B" , "Zeng, Star" Thread-Topic: [edk2] [PATCH] SecurityPkg: Tcg2Dxe: Report correct FinalEventLog size Thread-Index: AQHSV1uFNIxaiWDjs0KhThoNiz6oXaEKDVzg Date: Fri, 16 Dec 2016 05:34:32 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503A8C4660@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 05:34:36 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen.yao@intel.com > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Zh= ang, > Chao B > Sent: Friday, December 16, 2016 1:16 PM > To: edk2-devel@lists.01.org > Cc: Yao, Jiewen ; Zhang, Chao B > ; Zeng, Star > Subject: [edk2] [PATCH] SecurityPkg: Tcg2Dxe: Report correct FinalEventLo= g size >=20 > Update debug log to report correct FinalEventLog size. >=20 > 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(-) >=20 > diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c > b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.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", > (mTcgDxeData.FinalEventsTable[Index])->NumberOfEvents)); > - DEBUG ((EFI_D_INFO, " Size - 0x%x\n", > (UINTN)EventLogAreaStruct->LastEvent - > (UINTN)mTcgDxeData.FinalEventsTable[Index])); > + DEBUG ((EFI_D_INFO, " Size - 0x%x\n", > (UINTN)EventLogAreaStruct->EventLogSize)); > } > } >=20 > -- > 1.9.5.msysgit.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel