From: Zhang, Chao B Date: Fri, 16 Dec 2016 05:09:44 +0000 (+0800) Subject: SecurityPkg: Tcg2Dxe: Report correct FinalEventLog size X-Git-Tag: edk2-stable201903~4922 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c0584d0bdd4463551db8f8c62a5e2936ec97b407;hp=14806d7b7dda38ddf7ff51e91cf412f1c6e10b58 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 Reviewed-by: Yao Jiewen Reviewed-by: Star Zeng --- diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c index cf2fe4e508..556ef33d9b 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)); } }