Skip to content

Commit

Permalink
Set debug level to info when get cert_chain 1~7 failed
Browse files Browse the repository at this point in the history
Signed-off-by: Min Xu <min.m.xu@intel.com>
  • Loading branch information
mxu9 authored and jyao1 committed May 20, 2024
1 parent b08df7d commit 199db80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spdm_device_evidence_collection (void *spdm_context)
&cert_chain.cert_chain_size,
cert_chain.cert_chain);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
TEEIO_DEBUG((TEEIO_DEBUG_ERROR, "libspdm_get_certificate (slot=%d) - %x\n", slot_id, (uint32_t)status));
TEEIO_DEBUG((TEEIO_DEBUG_INFO, "libspdm_get_certificate (slot=%d) - %x\n", slot_id, (uint32_t)status));
cert_chain.cert_chain_size = 0;
}
cert_chain_name[18] = slot_id + '0';
Expand Down
2 changes: 1 addition & 1 deletion teeio-validator/teeio_validator/teeio_validator_spdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ bool spdm_connect (void *spdm_context, uint32_t *session_id)
&cert_chain.cert_chain_size,
cert_chain.cert_chain);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
TEEIO_DEBUG((TEEIO_DEBUG_ERROR, "libspdm_get_certificate (slot=%d) - %x\n", slot_id, (uint32_t)status));
TEEIO_DEBUG((TEEIO_DEBUG_INFO, "libspdm_get_certificate (slot=%d) - %x\n", slot_id, (uint32_t)status));
cert_chain.cert_chain_size = 0;
}
cert_chain_name[18] = slot_id + '0';
Expand Down

0 comments on commit 199db80

Please sign in to comment.