From 1ee26db0db18c60c5a4ac15bca4681c68485b7eb Mon Sep 17 00:00:00 2001 From: Lans Zhang Date: Wed, 16 Nov 2016 15:24:00 +0800 Subject: [PATCH] shim/tpm: print the error status if trigger fails Signed-off-by: Lans Zhang --- tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpm.c b/tpm.c index 0305b40..9b5a899 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; }