diff options
author | Oliver Stöneberg <oliverst@online.de> | 2011-04-26 15:57:23 -0700 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-05-01 19:42:13 +0200 |
commit | 189796e94fd9b00138b16241c1662821c9582587 (patch) | |
tree | 957d6a0ecf1f5b574ae8d00ac54296578652746a /examples/sample.c | |
parent | 2431c7d9250882f83a3b3ce97b7cb0dd04c48344 (diff) | |
download | libssh-189796e94fd9b00138b16241c1662821c9582587.tar.gz libssh-189796e94fd9b00138b16241c1662821c9582587.tar.xz libssh-189796e94fd9b00138b16241c1662821c9582587.zip |
examples: Removed unnecessary \n from ssh_log() calls in samplessh.
(cherry picked from commit a73459171bb79cc402ff60621c06c75e9a7fb4d4)
Diffstat (limited to 'examples/sample.c')
-rw-r--r-- | examples/sample.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/sample.c b/examples/sample.c index 547fd184..83cb01aa 100644 --- a/examples/sample.c +++ b/examples/sample.c @@ -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 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); channel=NULL; @@ -261,8 +261,8 @@ static void select_loop(ssh_session session,ssh_channel channel){ return; } if(lus==0){ - ssh_log(session,SSH_LOG_RARE,"EOF received\n"); - ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel)); + ssh_log(session,SSH_LOG_RARE,"EOF received"); + ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel)); ssh_channel_free(channel); channel=channels[0]=NULL; @@ -280,8 +280,8 @@ static void select_loop(ssh_session session,ssh_channel channel){ return; } if(lus==0){ - ssh_log(session,SSH_LOG_RARE,"EOF received\n"); - ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel)); + ssh_log(session,SSH_LOG_RARE,"EOF received"); + ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel)); ssh_channel_free(channel); channel=channels[0]=NULL; } else @@ -338,7 +338,7 @@ static void select_loop(ssh_session session,ssh_channel 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); channel=NULL; @@ -353,8 +353,8 @@ static void select_loop(ssh_session session,ssh_channel channel){ return; } if(lus==0){ - ssh_log(session,SSH_LOG_RARE,"EOF received\n"); - ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel)); + ssh_log(session,SSH_LOG_RARE,"EOF received"); + ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel)); ssh_channel_free(channel); channel=channels[0]=NULL; @@ -372,8 +372,8 @@ static void select_loop(ssh_session session,ssh_channel channel){ return; } if(lus==0){ - ssh_log(session,SSH_LOG_RARE,"EOF received\n"); - ssh_log(session,SSH_LOG_RARE,"exit-status : %d\n",ssh_channel_get_exit_status(channel)); + ssh_log(session,SSH_LOG_RARE,"EOF received"); + ssh_log(session,SSH_LOG_RARE,"exit-status : %d",ssh_channel_get_exit_status(channel)); ssh_channel_free(channel); channel=channels[0]=NULL; } else |