Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
print rollback index info for testing purpose
Browse files Browse the repository at this point in the history
Tracked-On: OAM-115503
Signed-off-by: Chen, Gang G <[email protected]>
  • Loading branch information
GangSecurity committed Feb 1, 2024
1 parent 215390f commit 8926c1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libkernelflinger/tpm2_security.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,7 @@ EFI_STATUS read_rollback_index_tpm2(size_t rollback_index_slot, uint64_t *out_ro

FreePool(req);

debug(L"Read rollback index from TPM success, slot: %d, index: 0x%llx", rollback_index_slot, *out_rollback_index);
return ret;
}

Expand All @@ -950,6 +951,7 @@ EFI_STATUS write_rollback_index_tpm2(size_t rollback_index_slot, uint64_t rollba
EFI_STATUS ret = req->ret;
FreePool(req);

debug(L"Write rollback index to TPM success, slot: %d, index: 0x%llx", rollback_index_slot, rollback_index);
return ret;
}

Expand Down

0 comments on commit 8926c1c

Please sign in to comment.