vendorcode/eltan/security: Correct debug output

Correct debug ouput in tpm2_get_capability_pcrs.

BUG=N/A
TEST=build

Change-Id: Ibd12c9dc22980f21ecba204729c5da0d11618e12
Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36484
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Wim Vervoorn 2019-10-30 17:13:40 +01:00 committed by Patrick Georgi
parent d1fb78dbfc
commit 653a66fa81
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ int tpm2_get_capability_pcrs(TPML_PCR_SELECTION *Pcrs)
for (index = 0; index < Pcrs->count; index++) { for (index = 0; index < Pcrs->count; index++) {
Pcrs->pcrSelections[index].hash = Pcrs->pcrSelections[index].hash =
swab16(TpmCap.data.assignedPCR.pcrSelections[index].hash); swab16(TpmCap.data.assignedPCR.pcrSelections[index].hash);
printk(BIOS_DEBUG, "Pcrs->pcrSelections[index].hash =" printk(BIOS_DEBUG, "Pcrs->pcrSelections[%d].hash = 0x%x\n", index,
"0x%x\n", Pcrs->pcrSelections[index].hash); Pcrs->pcrSelections[index].hash);
Pcrs->pcrSelections[index].sizeofSelect = Pcrs->pcrSelections[index].sizeofSelect =
TpmCap.data.assignedPCR.pcrSelections[index].sizeofSelect; TpmCap.data.assignedPCR.pcrSelections[index].sizeofSelect;
memcpy(Pcrs->pcrSelections[index].pcrSelect, memcpy(Pcrs->pcrSelections[index].pcrSelect,