shim/tpm: print the error status if trigger fails

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
Lans Zhang 2016-11-16 15:24:00 +08:00 committed by Peter Jones
parent d3884fe833
commit 1ee26db0db

2
tpm.c
View File

@ -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;
}