change the format specifier of uint32_t from PRId32 to PRIu32

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Xiang Xiao
2022-10-10 19:13:31 +08:00
committed by Jakub Jelen
parent b53d0608b6
commit 787735098f
10 changed files with 45 additions and 45 deletions

View File

@@ -1187,7 +1187,7 @@ size_t ssh_packet_socket_callback(const void *data, size_t receivedlen, void *us
/* give up, not enough data in buffer */
SSH_LOG(SSH_LOG_PACKET,
"packet: partial packet (read len) "
"[len=%" PRId32 ", receivedlen=%d, to_be_read=%ld]",
"[len=%" PRIu32 ", receivedlen=%d, to_be_read=%ld]",
packet_len,
(int)receivedlen,
to_be_read);
@@ -1286,7 +1286,7 @@ size_t ssh_packet_socket_callback(const void *data, size_t receivedlen, void *us
if (padding > ssh_buffer_get_len(session->in_buffer)) {
ssh_set_error(session,
SSH_FATAL,
"Invalid padding: %d (%" PRId32 " left)",
"Invalid padding: %d (%" PRIu32 " left)",
padding,
ssh_buffer_get_len(session->in_buffer));
goto error;
@@ -1324,7 +1324,7 @@ size_t ssh_packet_socket_callback(const void *data, size_t receivedlen, void *us
session->packet_state = PACKET_STATE_PROCESSING;
ssh_packet_parse_type(session);
SSH_LOG(SSH_LOG_PACKET,
"packet: read type %hhd [len=%" PRId32 ",padding=%hhd,comp=%" PRId32 ",payload=%" PRId32 "]",
"packet: read type %hhd [len=%" PRIu32 ",padding=%hhd,comp=%" PRIu32 ",payload=%" PRIu32 "]",
session->in_packet.type, packet_len, padding, compsize, payloadsize);
/* Check if the packet is expected */
@@ -1548,7 +1548,7 @@ SSH_PACKET_CALLBACK(ssh_packet_unimplemented){
}
SSH_LOG(SSH_LOG_RARE,
"Received SSH_MSG_UNIMPLEMENTED (sequence number %" PRId32 ")",seq);
"Received SSH_MSG_UNIMPLEMENTED (sequence number %" PRIu32 ")",seq);
return SSH_PACKET_USED;
}