summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLans Zhang <jia.zhang@windriver.com>2016-11-16 15:24:00 +0800
committerPeter Jones <pjones@redhat.com>2016-11-30 12:56:55 -0500
commit1ee26db0db18c60c5a4ac15bca4681c68485b7eb (patch)
tree85b12bf47b133f6c8dd286d19f31bf40abebc9cf
parentd3884fe8336be793e3b3ad5813f5e6c436d78d60 (diff)
downloadefi-boot-shim-1ee26db0db18c60c5a4ac15bca4681c68485b7eb.tar.gz
efi-boot-shim-1ee26db0db18c60c5a4ac15bca4681c68485b7eb.zip
shim/tpm: print the error status if trigger fails
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
-rw-r--r--tpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpm.c b/tpm.c
index 0305b401..9b5a8991 100644
--- a/tpm.c
+++ b/tpm.c
@@ -93,7 +93,7 @@ EFI_STATUS tpm_log_event(EFI_PHYSICAL_ADDRESS buf, UINTN size, UINT8 pcr,
status = trigger_tcg2_final_events_table(tpm2);
if (EFI_ERROR(status)) {
- perror(L"Unable to trigger tcg2 final events table\n");
+ perror(L"Unable to trigger tcg2 final events table: %r\n", status);
return status;
}