Skip to content

Commit

Permalink
Correct dump value and flags
Browse files Browse the repository at this point in the history
Signed-off-by: Jiewen Yao <[email protected]>
  • Loading branch information
jyao1 committed Nov 30, 2023
1 parent 0af8aeb commit 2e14477
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spdm_dump/spdm/spdm_dump_spdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ size_t m_spdm_mel_spec_value_string_table_count =
LIBSPDM_ARRAY_SIZE(m_spdm_mel_spec_value_string_table);

value_string_entry_t m_spdm_other_param_value_string_table[] = {
{ SPDM_ALGORITHMS_OPAQUE_DATA_FORMAT_0, "OPAQUE_FMT_0" },
{ SPDM_ALGORITHMS_OPAQUE_DATA_FORMAT_1, "OPAQUE_FMT_1" },
{ SPDM_ALGORITHMS_MULTI_KEY_CONN, "MULTI_KEY_CONN" },
};
Expand Down Expand Up @@ -668,7 +669,7 @@ void dump_spdm_negotiate_algorithms(const void *buffer, size_t buffer_size)
if (spdm_request->header.spdm_version >=
SPDM_MESSAGE_VERSION_13) {
printf("), MelSpec=0x%02x(", spdm_request->mel_specification);
dump_entry_value(m_spdm_mel_spec_value_string_table,
dump_entry_flags(m_spdm_mel_spec_value_string_table,
LIBSPDM_ARRAY_SIZE(m_spdm_mel_spec_value_string_table),
spdm_request->mel_specification);
}
Expand Down Expand Up @@ -791,7 +792,7 @@ void dump_spdm_algorithms(const void *buffer, size_t buffer_size)
if (spdm_response->header.spdm_version >=
SPDM_MESSAGE_VERSION_12) {
printf("), OtherParam=0x%02x(", spdm_response->other_params_selection);
dump_entry_value(m_spdm_other_param_value_string_table,
dump_entry_flags(m_spdm_other_param_value_string_table,
LIBSPDM_ARRAY_SIZE(m_spdm_other_param_value_string_table),
spdm_response->other_params_selection);
}
Expand Down

0 comments on commit 2e14477

Please sign in to comment.