diff --git a/src/packet.c b/src/packet.c index e9ae5648..9fb4a1bf 100644 --- a/src/packet.c +++ b/src/packet.c @@ -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; } diff --git a/src/packet_crypt.c b/src/packet_crypt.c index 95d438c8..b248ae85 100644 --- a/src/packet_crypt.c +++ b/src/packet_crypt.c @@ -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; }