Skip to content

Commit

Permalink
Fix conversion specifiers
Browse files Browse the repository at this point in the history
Fix #2573.

Signed-off-by: Steven Bellock <[email protected]>
  • Loading branch information
steven-bellock committed Feb 15, 2024
1 parent 11a60b3 commit c9c260b
Show file tree
Hide file tree
Showing 39 changed files with 239 additions and 239 deletions.
4 changes: 2 additions & 2 deletions library/spdm_common_lib/libspdm_com_context_data.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -1212,7 +1212,7 @@ bool libspdm_check_context (void *spdm_context)
context->local_context.capability.max_spdm_msg_size)) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR,
"max_spdm_msg_size (%d) must be greater than or "
"equal to local_cert_chain_provision_size[%d] (%d).\n",
"equal to local_cert_chain_provision_size[%zu] (%zu).\n",
context->local_context.capability.max_spdm_msg_size, index,
context->local_context.local_cert_chain_provision_size[index]));
return false;
Expand Down
6 changes: 3 additions & 3 deletions library/spdm_common_lib/libspdm_com_msg_log.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -89,8 +89,8 @@ void libspdm_append_msg_log(libspdm_context_t *spdm_context, void *message, size
spdm_context->msg_log.buffer_size += message_size;
}

LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "Message Logging Status = [%x] Buffer Size = [%x] "
"Max Buffer Size = [%x]\n", spdm_context->msg_log.status,
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "Message Logging Status = [%x] Buffer Size = [%zx] "
"Max Buffer Size = [%zx]\n", spdm_context->msg_log.status,
spdm_context->msg_log.buffer_size, spdm_context->msg_log.max_buffer_size));
LIBSPDM_INTERNAL_DUMP_HEX(spdm_context->msg_log.buffer, spdm_context->msg_log.buffer_size);
}
Expand Down
10 changes: 5 additions & 5 deletions library/spdm_common_lib/libspdm_com_support.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -84,15 +84,15 @@ void libspdm_internal_dump_hex_str(const uint8_t *data, size_t size)
{
size_t index;
for (index = 0; index < size; index++) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "%02x", (size_t)data[index]));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "%02x", data[index]));
}
}

void libspdm_internal_dump_data(const uint8_t *data, size_t size)
{
size_t index;
for (index = 0; index < size; index++) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "%02x ", (size_t)data[index]));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "%02x ", data[index]));
}
}

Expand All @@ -107,13 +107,13 @@ void libspdm_internal_dump_hex(const uint8_t *data, size_t size)
count = size / COLUMN_SIZE;
left = size % COLUMN_SIZE;
for (index = 0; index < count; index++) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "%04x: ", index * COLUMN_SIZE));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "%04zx: ", index * COLUMN_SIZE));
LIBSPDM_INTERNAL_DUMP_DATA(data + index * COLUMN_SIZE, COLUMN_SIZE);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "\n"));
}

if (left != 0) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "%04x: ", index * COLUMN_SIZE));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "%04zx: ", index * COLUMN_SIZE));
LIBSPDM_INTERNAL_DUMP_DATA(data + index * COLUMN_SIZE, left);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "\n"));
}
Expand Down
8 changes: 4 additions & 4 deletions library/spdm_requester_lib/libspdm_req_challenge.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -240,7 +240,7 @@ static libspdm_return_t libspdm_try_challenge(libspdm_context_t *spdm_context,

cert_chain_hash = ptr;
ptr += hash_size;
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "cert_chain_hash (0x%x) - ", hash_size));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "cert_chain_hash (0x%zx) - ", hash_size));
LIBSPDM_INTERNAL_DUMP_DATA(cert_chain_hash, hash_size);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "\n"));
if (slot_id == 0xFF) {
Expand Down Expand Up @@ -353,7 +353,7 @@ static libspdm_return_t libspdm_try_challenge(libspdm_context_t *spdm_context,
}

signature = ptr;
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "signature (0x%x):\n", signature_size));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "signature (0x%zx):\n", signature_size));
LIBSPDM_INTERNAL_DUMP_HEX(signature, signature_size);
result = libspdm_verify_challenge_auth_signature(spdm_context, true, signature, signature_size);
if (!result) {
Expand All @@ -379,7 +379,7 @@ static libspdm_return_t libspdm_try_challenge(libspdm_context_t *spdm_context,
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "BasicMutAuth :\n"));
status = libspdm_encapsulated_request(spdm_context, NULL, 0, NULL);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_challenge - libspdm_encapsulated_request - %p\n", status));
"libspdm_challenge - libspdm_encapsulated_request - %xu\n", status));
if (LIBSPDM_STATUS_IS_ERROR(status)) {
libspdm_reset_message_c(spdm_context);
return status;
Expand Down
24 changes: 12 additions & 12 deletions library/spdm_requester_lib/libspdm_req_communication.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -61,7 +61,7 @@ libspdm_return_t libspdm_start_session(void *spdm_context, bool use_psk,
measurement_hash);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_send_receive_key_exchange - %p\n",
"libspdm_start_session - libspdm_send_receive_key_exchange - %xu\n",
status));
return status;
}
Expand Down Expand Up @@ -91,7 +91,7 @@ libspdm_return_t libspdm_start_session(void *spdm_context, bool use_psk,
session_info->mut_auth_requested,
&req_slot_id_param);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_encapsulated_request - %p\n", status));
"libspdm_start_session - libspdm_encapsulated_request - %xu\n", status));
if (LIBSPDM_STATUS_IS_ERROR(status)) {
return status;
}
Expand All @@ -114,7 +114,7 @@ libspdm_return_t libspdm_start_session(void *spdm_context, bool use_psk,
}
status = libspdm_send_receive_finish(context, *session_id, req_slot_id_param);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_send_receive_finish - %p\n", status));
"libspdm_start_session - libspdm_send_receive_finish - %xu\n", status));
#else /* LIBSPDM_ENABLE_CAPABILITY_KEY_EX_CAP*/
LIBSPDM_ASSERT(false);
return LIBSPDM_STATUS_UNSUPPORTED_CAP;
Expand All @@ -127,7 +127,7 @@ libspdm_return_t libspdm_start_session(void *spdm_context, bool use_psk,
heartbeat_period, measurement_hash);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_send_receive_psk_exchange - %p\n",
"libspdm_start_session - libspdm_send_receive_psk_exchange - %xu\n",
status));
return status;
}
Expand All @@ -138,7 +138,7 @@ libspdm_return_t libspdm_start_session(void *spdm_context, bool use_psk,
SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_PSK_CAP_RESPONDER_WITH_CONTEXT)) {
status = libspdm_send_receive_psk_finish(context, *session_id);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_send_receive_psk_finish - %p\n",
"libspdm_start_session - libspdm_send_receive_psk_finish - %xu\n",
status));
}
#endif /* LIBSPDM_ENABLE_CAPABILITY_PSK_CAP*/
Expand Down Expand Up @@ -194,7 +194,7 @@ libspdm_return_t libspdm_start_session_ex(void *spdm_context, bool use_psk,
responder_opaque_data, responder_opaque_data_size);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_send_receive_key_exchange - %p\n",
"libspdm_start_session - libspdm_send_receive_key_exchange - %xu\n",
status));
return status;
}
Expand Down Expand Up @@ -224,7 +224,7 @@ libspdm_return_t libspdm_start_session_ex(void *spdm_context, bool use_psk,
session_info->mut_auth_requested,
&req_slot_id_param);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_encapsulated_request - %p\n", status));
"libspdm_start_session - libspdm_encapsulated_request - %xu\n", status));
if (LIBSPDM_STATUS_IS_ERROR(status)) {
return status;
}
Expand All @@ -247,7 +247,7 @@ libspdm_return_t libspdm_start_session_ex(void *spdm_context, bool use_psk,
}
status = libspdm_send_receive_finish(context, *session_id, req_slot_id_param);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_send_receive_finish - %p\n", status));
"libspdm_start_session - libspdm_send_receive_finish - %xu\n", status));
#else /* LIBSPDM_ENABLE_CAPABILITY_KEY_EX_CAP*/
LIBSPDM_ASSERT(false);
return LIBSPDM_STATUS_UNSUPPORTED_CAP;
Expand All @@ -265,7 +265,7 @@ libspdm_return_t libspdm_start_session_ex(void *spdm_context, bool use_psk,
responder_opaque_data, responder_opaque_data_size);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_send_receive_psk_exchange - %p\n",
"libspdm_start_session - libspdm_send_receive_psk_exchange - %xu\n",
status));
return status;
}
Expand All @@ -276,7 +276,7 @@ libspdm_return_t libspdm_start_session_ex(void *spdm_context, bool use_psk,
SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_PSK_CAP_RESPONDER_WITH_CONTEXT)) {
status = libspdm_send_receive_psk_finish(context, *session_id);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_start_session - libspdm_send_receive_psk_finish - %p\n",
"libspdm_start_session - libspdm_send_receive_psk_finish - %xu\n",
status));
}
#else /* LIBSPDM_ENABLE_CAPABILITY_PSK_CAP*/
Expand All @@ -297,7 +297,7 @@ libspdm_return_t libspdm_stop_session(void *spdm_context, uint32_t session_id,
context = spdm_context;

status = libspdm_send_receive_end_session(context, session_id, end_session_attributes);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "libspdm_stop_session - %p\n", status));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "libspdm_stop_session - %xu\n", status));

return status;
}
Expand Down
4 changes: 2 additions & 2 deletions library/spdm_requester_lib/libspdm_req_finish.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -548,7 +548,7 @@ static libspdm_return_t libspdm_try_send_receive_finish(libspdm_context_t *spdm_
spdm_context, true,
SPDM_GET_CAPABILITIES_REQUEST_FLAGS_HANDSHAKE_IN_THE_CLEAR_CAP,
SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_HANDSHAKE_IN_THE_CLEAR_CAP)) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "verify_data (0x%x):\n", hmac_size));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "verify_data (0x%zx):\n", hmac_size));
LIBSPDM_INTERNAL_DUMP_HEX(spdm_response->verify_data, hmac_size);
result = libspdm_verify_finish_rsp_hmac(spdm_context, session_info,
spdm_response->verify_data,
Expand Down
10 changes: 5 additions & 5 deletions library/spdm_requester_lib/libspdm_req_get_digests.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -235,22 +235,22 @@ static libspdm_return_t libspdm_try_get_digest(libspdm_context_t *spdm_context,
(spdm_key_usage_bit_mask_t *)((uint8_t *)cert_info + sizeof(spdm_certificate_info_t) *
digest_count);
for (index = 0; index < digest_count; index++) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "digest (0x%x) - ", index));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "digest (0x%zx) - ", index));
LIBSPDM_INTERNAL_DUMP_DATA(&spdm_response->digest[digest_size * index], digest_size);
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "\n"));
}
if ((spdm_request->header.spdm_version >= SPDM_MESSAGE_VERSION_13) &&
spdm_context->connection_info.multi_key_conn_rsp) {
for (index = 0; index < digest_count; index++) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "key_pair_id (0x%x) - 0x%02x\n", index,
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "key_pair_id (0x%zx) - 0x%02x\n", index,
key_pair_id[index]));
}
for (index = 0; index < digest_count; index++) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "cert_info (0x%x) - 0x%02x\n", index,
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "cert_info (0x%zx) - 0x%02x\n", index,
cert_info[index]));
}
for (index = 0; index < digest_count; index++) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "key_usage_bit_mask (0x%x) - 0x%04x\n", index,
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "key_usage_bit_mask (0x%zx) - 0x%04x\n", index,
key_usage_bit_mask[index]));
}
}
Expand Down
4 changes: 2 additions & 2 deletions library/spdm_requester_lib/libspdm_req_get_measurements.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -481,7 +481,7 @@ static libspdm_return_t libspdm_try_get_measurement(libspdm_context_t *spdm_cont
}

signature = ptr;
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "signature (0x%x):\n", signature_size));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "signature (0x%zx):\n", signature_size));
LIBSPDM_INTERNAL_DUMP_HEX(signature, signature_size);

result = libspdm_verify_measurement_signature(
Expand Down
6 changes: 3 additions & 3 deletions library/spdm_requester_lib/libspdm_req_key_exchange.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -397,7 +397,7 @@ static libspdm_return_t libspdm_try_send_receive_key_exchange(
libspdm_release_sender_buffer (spdm_context);
return LIBSPDM_STATUS_CRYPTO_ERROR;
}
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "RequesterKey (0x%x):\n", dhe_key_size));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "RequesterKey (0x%zx):\n", dhe_key_size));
LIBSPDM_INTERNAL_DUMP_HEX(ptr, dhe_key_size);
ptr += dhe_key_size;

Expand Down Expand Up @@ -580,7 +580,7 @@ static libspdm_return_t libspdm_try_send_receive_key_exchange(
spdm_response->random_data, SPDM_RANDOM_DATA_SIZE);
}

LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "ResponderKey (0x%x):\n", dhe_key_size));
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "ResponderKey (0x%zx):\n", dhe_key_size));
LIBSPDM_INTERNAL_DUMP_HEX(spdm_response->exchange_data, dhe_key_size);

ptr = spdm_response->exchange_data;
Expand Down
4 changes: 2 additions & 2 deletions library/spdm_requester_lib/libspdm_req_psk_exchange.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -530,7 +530,7 @@ static libspdm_return_t libspdm_try_send_receive_psk_exchange(
/* No need to send PSK_FINISH, enter application phase directly.*/

LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "libspdm_generate_session_data_key[%x]\n",
session_id));
*session_id));
result = libspdm_calculate_th2_hash(spdm_context, session_info,
true, th2_hash_data);
if (!result) {
Expand Down
14 changes: 7 additions & 7 deletions library/spdm_requester_lib/libspdm_req_send_receive.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand All @@ -25,7 +25,7 @@ libspdm_return_t libspdm_send_request(void *spdm_context, const uint32_t *sessio
context = spdm_context;

LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_send_spdm_request[%x] msg %s(0x%x), size (0x%x): \n",
"libspdm_send_spdm_request[%x] msg %s(0x%x), size (0x%zx): \n",
(session_id != NULL) ? *session_id : 0x0,
libspdm_get_code_str(((spdm_message_header_t *)request)->
request_response_code),
Expand Down Expand Up @@ -99,7 +99,7 @@ libspdm_return_t libspdm_send_request(void *spdm_context, const uint32_t *sessio
context, session_id, is_app_message, true, request_size,
request, &message_size, (void **)&message);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "transport_encode_message status - %p\n",
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "transport_encode_message status - %xu\n",
status));
if ((session_id != NULL) &&
((status == LIBSPDM_STATUS_SEQUENCE_NUMBER_OVERFLOW) ||
Expand All @@ -114,7 +114,7 @@ libspdm_return_t libspdm_send_request(void *spdm_context, const uint32_t *sessio
status = context->send_message(context, message_size, message,
timeout);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "libspdm_send_spdm_request[%x] status - %p\n",
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "libspdm_send_spdm_request[%x] status - %xu\n",
(session_id != NULL) ? *session_id : 0x0, status));
}

Expand Down Expand Up @@ -158,7 +158,7 @@ libspdm_return_t libspdm_receive_response(void *spdm_context, const uint32_t *se
(void **)&message, timeout);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_receive_spdm_response[%x] status - %p\n",
"libspdm_receive_spdm_response[%x] status - %xu\n",
(session_id != NULL) ? *session_id : 0x0, status));
return status;
}
Expand Down Expand Up @@ -260,11 +260,11 @@ libspdm_return_t libspdm_receive_response(void *spdm_context, const uint32_t *se
libspdm_free_session_id(context, *session_id);
}
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_receive_spdm_response[%x] status - %p\n",
"libspdm_receive_spdm_response[%x] status - %xu\n",
(session_id != NULL) ? *session_id : 0x0, status));
} else {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO,
"libspdm_receive_spdm_response[%x] msg %s(0x%x), size (0x%x): \n",
"libspdm_receive_spdm_response[%x] msg %s(0x%x), size (0x%zx): \n",
(session_id != NULL) ? *session_id : 0x0,
libspdm_get_code_str(((spdm_message_header_t *)*response)->
request_response_code),
Expand Down
Loading

0 comments on commit c9c260b

Please sign in to comment.