]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg: Fix GetSupportedAndActivePcrs counter calculation
authorRodrigo Gonzalez del Cueto <rodrigo.gonzalez.del.cueto@intel.com>
Mon, 20 Jul 2020 21:26:37 +0000 (14:26 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 9 Aug 2021 03:32:24 +0000 (03:32 +0000)
commit3c6107758baf2f5923b9d1a5a3f64b8296881be1
tree1bb6de464b7701ed8e0beb62f1695ff77e749aef
parent4de77ae9890d241271f543e9195ab3516f3abec6
SecurityPkg: Fix GetSupportedAndActivePcrs counter calculation

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2855
The Tpm2GetCapabilitySupportedAndActivePcrs function prints a
count number that should reflect the *supported and currently
active* PCR banks, but the implementation in place displays
instead the count of the *supported PCR banks* retrieved
directly from the Tpm2GetCapabilityPcrs()
TPML_PCR_SELECTION output.

The counter should only take into account those PCRs banks
which are active.

Replaced usage of EFI_D_* for DEBUG_* definitions in debug
messages.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Qi Zhang <qi1.zhang@intel.com>
Signed-off-by: Rodrigo Gonzalez del Cueto <rodrigo.gonzalez.del.cueto@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
SecurityPkg/Library/Tpm2CommandLib/Tpm2Capability.c