commit | 370572e7e2c4645dda957a3c041f575cdb4dce20 | [log] [tgz] |
---|---|---|
author | Leo Lai <cylai@google.com> | Thu Apr 30 11:44:17 2020 +0800 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 31 08:52:18 2020 +0000 |
tree | 9e9f8c748b19163642c16d9c874316b3b4f80661 | |
parent | a2c5fa585261eae4ef6053f24afd164b927cf080 [diff] |
attestation: add missing log If the caller ends up to fail, the added log is helpful with diagnosis. BUG=b:146525460 TEST=build ok. Change-Id: Ifa1fbda766409e3078101612e17b64ad552a37ea Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2603675 Tested-by: Leo Lai <cylai@google.com> Commit-Queue: Leo Lai <cylai@google.com> Reviewed-by: Yi Chou <yich@google.com>
diff --git a/attestation/common/tpm_utility_v2.cc b/attestation/common/tpm_utility_v2.cc index 604d482..f9aaf1c 100644 --- a/attestation/common/tpm_utility_v2.cc +++ b/attestation/common/tpm_utility_v2.cc
@@ -108,6 +108,8 @@ crypto::ScopedEC_KEY GetEccPublicKeyFromTpmPublicArea( const trunks::TPMT_PUBLIC& public_area) { if (public_area.type != trunks::TPM_ALG_ECC) { + LOG(ERROR) << __func__ + << ": Unexpected algorithm type: " << public_area.type; return nullptr; }