mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 10:27:22 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user