tpmr: Add missing traces to tpm2_kexec_finalize, tpm2_shutdown

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-03-08 17:06:31 -05:00
parent c62b96b4a6
commit 8d834f649d
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -467,6 +467,8 @@ tpm2_reset() {
# Perform final cleanup before boot and lock the platform heirarchy.
tpm2_kexec_finalize() {
TRACE "Under /bin/tpmr:tpm2_kexec_finalize"
# Flush sessions and transient objects
tpm2 flushcontext -Q --transient-object \
|| warn "tpm2_flushcontext: unable to flush transient handles"
@ -485,6 +487,8 @@ tpm2_kexec_finalize() {
}
tpm2_shutdown() {
TRACE "Under /bin/tpmr:tpm2_shutdown"
# Prepare for shutdown.
# This is a "clear" shutdown (do not preserve runtime state) since we
# are not going to resume later, we are powering off (or rebooting).