1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-11 03:42:35 +03:00

remove the unnecessary cast of SSH_LOG

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Xiang Xiao
2022-10-11 08:46:50 +08:00
committed by Jakub Jelen
parent 787735098f
commit e4d4ca78b4
2 changed files with 5 additions and 5 deletions

View File

@@ -207,8 +207,8 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open_conf){
SSH_LOG(SSH_LOG_DEBUG, SSH_LOG(SSH_LOG_DEBUG,
"Remote window : %" PRIu32 ", maxpacket : %" PRIu32, "Remote window : %" PRIu32 ", maxpacket : %" PRIu32,
(uint32_t) channel->remote_window, channel->remote_window,
(uint32_t) channel->remote_maxpacket); channel->remote_maxpacket);
channel->state = SSH_CHANNEL_STATE_OPEN; channel->state = SSH_CHANNEL_STATE_OPEN;
channel->flags &= ~SSH_CHANNEL_FLAG_NOT_BOUND; channel->flags &= ~SSH_CHANNEL_FLAG_NOT_BOUND;
@@ -257,7 +257,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open_fail){
ssh_set_error(session, SSH_REQUEST_DENIED, ssh_set_error(session, SSH_REQUEST_DENIED,
"Channel opening failure: channel %" PRIu32 " error (%" PRIu32 ") %s", "Channel opening failure: channel %" PRIu32 " error (%" PRIu32 ") %s",
channel->local_channel, channel->local_channel,
(uint32_t) code, code,
error); error);
SAFE_FREE(error); SAFE_FREE(error);
channel->state=SSH_CHANNEL_STATE_OPEN_DENIED; channel->state=SSH_CHANNEL_STATE_OPEN_DENIED;

View File

@@ -1187,9 +1187,9 @@ size_t ssh_packet_socket_callback(const void *data, size_t receivedlen, void *us
/* give up, not enough data in buffer */ /* give up, not enough data in buffer */
SSH_LOG(SSH_LOG_PACKET, SSH_LOG(SSH_LOG_PACKET,
"packet: partial packet (read len) " "packet: partial packet (read len) "
"[len=%" PRIu32 ", receivedlen=%d, to_be_read=%ld]", "[len=%" PRIu32 ", receivedlen=%zu, to_be_read=%ld]",
packet_len, packet_len,
(int)receivedlen, receivedlen,
to_be_read); to_be_read);
return 0; return 0;
} }