mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
packet: Replace PRIdS with ANSI C99 %zu
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -1352,7 +1352,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
|
||||
if (processed < receivedlen) {
|
||||
/* Handle a potential packet left in socket buffer */
|
||||
SSH_LOG(SSH_LOG_PACKET,
|
||||
"Processing %" PRIdS " bytes left in socket buffer",
|
||||
"Processing %zu bytes left in socket buffer",
|
||||
receivedlen-processed);
|
||||
|
||||
ptr = ((uint8_t*)data) + processed;
|
||||
@@ -1384,7 +1384,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
|
||||
|
||||
error:
|
||||
session->session_state= SSH_SESSION_STATE_ERROR;
|
||||
SSH_LOG(SSH_LOG_PACKET,"Packet: processed %" PRIdS " bytes", processed);
|
||||
SSH_LOG(SSH_LOG_PACKET,"Packet: processed %zu bytes", processed);
|
||||
return processed;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ int ssh_packet_decrypt(ssh_session session,
|
||||
ssh_set_error(session,
|
||||
SSH_FATAL,
|
||||
"Cryptographic functions must be used on multiple of "
|
||||
"blocksize (received %" PRIdS ")",
|
||||
"blocksize (received %zu)",
|
||||
encrypted_size);
|
||||
return SSH_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user