mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
examples: Removed unnecessary \n from ssh_log() calls in samplessh.
This commit is contained in:
committed by
Andreas Schneider
parent
c3849a3cfd
commit
a73459171b
@ -246,7 +246,7 @@ static void select_loop(ssh_session session,ssh_channel channel){
|
|||||||
// we already looked for input from stdin. Now, we are looking for input from the channel
|
// we already looked for input from stdin. Now, we are looking for input from the channel
|
||||||
|
|
||||||
if(channel && ssh_channel_is_closed(channel)){
|
if(channel && ssh_channel_is_closed(channel)){
|
||||||
ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel));
|
ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
|
||||||
|
|
||||||
ssh_channel_free(channel);
|
ssh_channel_free(channel);
|
||||||
channel=NULL;
|
channel=NULL;
|
||||||
@ -261,8 +261,8 @@ static void select_loop(ssh_session session,ssh_channel channel){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(lus==0){
|
if(lus==0){
|
||||||
ssh_log(session,SSH_LOG_RARE,"EOF received\n");
|
ssh_log(session,SSH_LOG_RARE,"EOF received");
|
||||||
ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel));
|
ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
|
||||||
|
|
||||||
ssh_channel_free(channel);
|
ssh_channel_free(channel);
|
||||||
channel=channels[0]=NULL;
|
channel=channels[0]=NULL;
|
||||||
@ -280,8 +280,8 @@ static void select_loop(ssh_session session,ssh_channel channel){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(lus==0){
|
if(lus==0){
|
||||||
ssh_log(session,SSH_LOG_RARE,"EOF received\n");
|
ssh_log(session,SSH_LOG_RARE,"EOF received");
|
||||||
ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel));
|
ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
|
||||||
ssh_channel_free(channel);
|
ssh_channel_free(channel);
|
||||||
channel=channels[0]=NULL;
|
channel=channels[0]=NULL;
|
||||||
} else
|
} else
|
||||||
@ -338,7 +338,7 @@ static void select_loop(ssh_session session,ssh_channel channel){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(channel && ssh_channel_is_closed(channel)){
|
if(channel && ssh_channel_is_closed(channel)){
|
||||||
ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel));
|
ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
|
||||||
|
|
||||||
ssh_channel_free(channel);
|
ssh_channel_free(channel);
|
||||||
channel=NULL;
|
channel=NULL;
|
||||||
@ -353,8 +353,8 @@ static void select_loop(ssh_session session,ssh_channel channel){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(lus==0){
|
if(lus==0){
|
||||||
ssh_log(session,SSH_LOG_RARE,"EOF received\n");
|
ssh_log(session,SSH_LOG_RARE,"EOF received");
|
||||||
ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel));
|
ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
|
||||||
|
|
||||||
ssh_channel_free(channel);
|
ssh_channel_free(channel);
|
||||||
channel=channels[0]=NULL;
|
channel=channels[0]=NULL;
|
||||||
@ -372,8 +372,8 @@ static void select_loop(ssh_session session,ssh_channel channel){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(lus==0){
|
if(lus==0){
|
||||||
ssh_log(session,SSH_LOG_RARE,"EOF received\n");
|
ssh_log(session,SSH_LOG_RARE,"EOF received");
|
||||||
ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel));
|
ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel));
|
||||||
ssh_channel_free(channel);
|
ssh_channel_free(channel);
|
||||||
channel=channels[0]=NULL;
|
channel=channels[0]=NULL;
|
||||||
} else
|
} else
|
||||||
|
Reference in New Issue
Block a user