# HG changeset patch # User Matt Johnston # Date 1143291457 0 # Node ID baea1d43e7eb90939d6244dc4032e616c8672bb9 # Parent 55a99934db873be2e63b5968fb6532e5d9bd02e4 Some cleanups/fixes for various TRACE statements diff -r 55a99934db87 -r baea1d43e7eb cli-auth.c --- a/cli-auth.c Thu Mar 09 15:03:22 2006 +0000 +++ b/cli-auth.c Sat Mar 25 12:57:37 2006 +0000 @@ -236,8 +236,8 @@ void cli_auth_try() { + int finished = 0; TRACE(("enter cli_auth_try")) - int finished = 0; CHECKCLEARTOWRITE(); diff -r 55a99934db87 -r baea1d43e7eb cli-chansession.c --- a/cli-chansession.c Thu Mar 09 15:03:22 2006 +0000 +++ b/cli-chansession.c Sat Mar 25 12:57:37 2006 +0000 @@ -162,14 +162,14 @@ static void put_termcodes() { - TRACE(("enter put_termcodes")) - struct termios tio; unsigned int sshcode; const struct TermCode *termcode; unsigned int value; unsigned int mapcode; + TRACE(("enter put_termcodes")) + unsigned int bufpos1, bufpos2; if (tcgetattr(STDIN_FILENO, &tio) == -1) { diff -r 55a99934db87 -r baea1d43e7eb common-channel.c --- a/common-channel.c Thu Mar 09 15:03:22 2006 +0000 +++ b/common-channel.c Sat Mar 25 12:57:37 2006 +0000 @@ -236,7 +236,7 @@ TRACE(("checkclose: writefd %d, readfd %d, errfd %d, sentclosed %d, recvclosed %d", channel->writefd, channel->readfd, channel->errfd, channel->sentclosed, channel->recvclosed)) - TRACE(("writebuf %d extrabuf %s extrabuf %d", + TRACE(("writebuf size %d extrabuf ptr 0x%x extrabuf size %d", cbuf_getused(channel->writebuf), channel->writebuf, channel->writebuf ? 0 : cbuf_getused(channel->extrabuf))) diff -r 55a99934db87 -r baea1d43e7eb svr-auth.c --- a/svr-auth.c Thu Mar 09 15:03:22 2006 +0000 +++ b/svr-auth.c Sat Mar 25 12:57:37 2006 +0000 @@ -315,14 +315,15 @@ buf_setpos(typebuf, 0); buf_putstring(ses.writepayload, buf_getptr(typebuf, typebuf->len), typebuf->len); + + TRACE(("auth fail: methods %d, '%s'", ses.authstate.authtypes, + buf_getptr(typebuf, typebuf->len))); + buf_free(typebuf); buf_putbyte(ses.writepayload, partial ? 1 : 0); encrypt_packet(); - TRACE(("auth fail: methods %d, '%s'", ses.authstate.authtypes, - buf_getptr(typebuf, typebuf->len))); - if (incrfail) { usleep(300000); /* XXX improve this */ ses.authstate.failcount++;