Mercurial > dropbear
diff cli-main.c @ 1894:62e4baa059c3
changed TRACE to DEBUG1 for dbclient
author | HansH111 <hans@atbas.org> |
---|---|
date | Sat, 19 Mar 2022 09:02:55 +0000 |
parents | 1d86a58fb52d |
children |
line wrap: on
line diff
--- a/cli-main.c Sat Mar 19 09:01:05 2022 +0000 +++ b/cli-main.c Sat Mar 19 09:02:55 2022 +0000 @@ -65,8 +65,12 @@ } #endif - TRACE(("user='%s' host='%s' port='%s' bind_address='%s' bind_port='%s'", cli_opts.username, - cli_opts.remotehost, cli_opts.remoteport, cli_opts.bind_address, cli_opts.bind_port)) + if (cli_opts.bind_address) { + DEBUG1(("connect to: user=%s host=%s/%s bind_address=%s:%s", cli_opts.username, + cli_opts.remotehost, cli_opts.remoteport, cli_opts.bind_address, cli_opts.bind_port)) + } else { + DEBUG1(("connect to: user=%s host=%s/%s",cli_opts.username,cli_opts.remotehost,cli_opts.remoteport)) + } if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { dropbear_exit("signal() error"); @@ -135,6 +139,7 @@ ret = spawn_command(exec_proxy_cmd, ex_cmd, sock_out, sock_in, NULL, pid_out); + DEBUG1(("cmd: %s pid=%d", ex_cmd,*pid_out)) m_free(ex_cmd); if (ret == DROPBEAR_FAILURE) { dropbear_exit("Failed running proxy command");