From bf95c447389c32e3555ea5cc5513a5ede2233ff2 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 23 Apr 2007 00:30:40 +0000 Subject: [PATCH] remove debugging code accidentally left in ftp/cmds.c Debugging code I added months ago in ftp/cmds.c and forgot to remove has apparently escaped notice until now. Markus Moeller reports seeing a bunch of "cmds.c: at line (number)" lines printed when he connects to a server. This patch removes those lines. A couple other debugging statements that test for the debug flag being set on the command line are left in. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19520 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gssftp/ftp/cmds.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/appl/gssftp/ftp/cmds.c b/src/appl/gssftp/ftp/cmds.c index f6d41c554..5044b4482 100644 --- a/src/appl/gssftp/ftp/cmds.c +++ b/src/appl/gssftp/ftp/cmds.c @@ -168,9 +168,7 @@ void setpeer(argc, argv) } port = htons(iport); } -printf("%s: at line %d\n", __FILE__, __LINE__); host = hookup(argv[1], port); -printf("%s: at line %d\n", __FILE__, __LINE__); if (host) { int overbose; @@ -185,28 +183,20 @@ printf("%s: at line %d\n", __FILE__, __LINE__); mode = MODE_S; stru = STRU_F; (void) strcpy(bytename, "8"), bytesize = 8; -printf("%s: at line %d\n", __FILE__, __LINE__); if (autoauth) { -printf("%s: at line %d\n", __FILE__, __LINE__); if (do_auth() && autoencrypt) { -printf("%s: at line %d\n", __FILE__, __LINE__); clevel = PROT_P; setpbsz(1<<20); if (command("PROT P") == COMPLETE) dlevel = PROT_P; else fprintf(stderr, "ftp: couldn't enable encryption\n"); -printf("%s: at line %d\n", __FILE__, __LINE__); } -printf("%s: at line %d\n", __FILE__, __LINE__); if(auth_type && clevel == PROT_C) clevel = PROT_S; -printf("%s: at line %d\n", __FILE__, __LINE__); if(autologin) (void) login(argv[1]); -printf("%s: at line %d\n", __FILE__, __LINE__); } -printf("%s: at line %d\n", __FILE__, __LINE__); #ifndef unix /* sigh */ @@ -221,7 +211,6 @@ printf("%s: at line %d\n", __FILE__, __LINE__); * this ifdef is to keep someone form "porting" this to an incompatible * system and not checking this out. This way they have to think about it. */ -printf("%s: at line %d\n", __FILE__, __LINE__); overbose = verbose; if (debug == 0) verbose = -1; -- 2.26.2