Skip to content

Commit 2621058

Browse files
Change format specifier from p to xu
Fix #3103. Signed-off-by: Steven Bellock <[email protected]>
1 parent 14f526d commit 2621058

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

library/spdm_transport_tcp_lib/libspdm_tcp_common.c

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ libspdm_return_t libspdm_transport_tcp_encode_message(
117117
&app_message_size,
118118
&app_message);
119119
if (LIBSPDM_STATUS_IS_ERROR(status)) {
120-
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR,
121-
"transport_encode_message - %p\n",
122-
status));
120+
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "transport_encode_message - %xu\n", status));
123121
return status;
124122
}
125123
} else {
@@ -135,8 +133,7 @@ libspdm_return_t libspdm_transport_tcp_encode_message(
135133
app_message_size, app_message, &secured_message_size,
136134
secured_message, &spdm_secured_message_callbacks);
137135
if (LIBSPDM_STATUS_IS_ERROR(status)) {
138-
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR,
139-
"libspdm_encode_secured_message - %p\n", status));
136+
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "libspdm_encode_secured_message - %xu\n", status));
140137
return status;
141138
}
142139

@@ -145,8 +142,7 @@ libspdm_return_t libspdm_transport_tcp_encode_message(
145142
session_id, secured_message_size, secured_message,
146143
transport_message_size, transport_message);
147144
if (LIBSPDM_STATUS_IS_ERROR(status)) {
148-
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "transport_encode_message - %p\n",
149-
status));
145+
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "transport_encode_message - %xu\n", status));
150146
return status;
151147
}
152148
} else {
@@ -155,8 +151,7 @@ libspdm_return_t libspdm_transport_tcp_encode_message(
155151
transport_message_size,
156152
transport_message);
157153
if (LIBSPDM_STATUS_IS_ERROR(status)) {
158-
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "transport_encode_message - %p\n",
159-
status));
154+
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "transport_encode_message - %xu\n", status));
160155
return status;
161156
}
162157
}
@@ -234,7 +229,7 @@ libspdm_return_t libspdm_transport_tcp_decode_message(
234229
&secured_message_session_id, transport_message_size,
235230
transport_message, &secured_message_size, (void **)&secured_message);
236231
if (LIBSPDM_STATUS_IS_ERROR(status)) {
237-
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "transport_decode_message - %p\n", status));
232+
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "transport_decode_message - %xu\n", status));
238233
return status;
239234
}
240235

@@ -261,8 +256,7 @@ libspdm_return_t libspdm_transport_tcp_decode_message(
261256
&app_message_size, (void **)&app_message,
262257
&spdm_secured_message_callbacks);
263258
if (LIBSPDM_STATUS_IS_ERROR(status)) {
264-
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR,
265-
"libspdm_decode_secured_message - %p\n", status));
259+
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "libspdm_decode_secured_message - %xu\n", status));
266260
libspdm_secured_message_get_last_spdm_error_struct(
267261
secured_message_context, &spdm_error);
268262
libspdm_set_last_spdm_error_struct(spdm_context,
@@ -299,8 +293,7 @@ libspdm_return_t libspdm_transport_tcp_decode_message(
299293
transport_message,
300294
message_size, message);
301295
if (LIBSPDM_STATUS_IS_ERROR(status)) {
302-
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "transport_decode_message - %p\n",
303-
status));
296+
LIBSPDM_DEBUG((LIBSPDM_DEBUG_ERROR, "transport_decode_message - %xu\n", status));
304297
return status;
305298
}
306299
LIBSPDM_ASSERT(secured_message_session_id == NULL);

0 commit comments

Comments
 (0)