Delete some load-game debug printing
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 16 Feb 2012 13:58:45 +0000 (14:58 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Fri, 17 Feb 2012 21:58:10 +0000 (22:58 +0100)
The debug printing in Disambiguate was no longer needed. The printing
of the started process in XBoard that went to stderr is now diverted
to debugFP, so it ends up in the debug file.

moves.c
xboard.c

diff --git a/moves.c b/moves.c
index 12e2057..5f6aad5 100644 (file)
--- a/moves.c
+++ b/moves.c
@@ -1313,11 +1313,6 @@ Disambiguate (Board board, int flags, DisambiguateClosure *closure)
     closure->count = closure->captures = 0;
     closure->rf = closure->ff = closure->rt = closure->ft = 0;
     closure->kind = ImpossibleMove;
-    if (appData.debugMode) {
-        fprintf(debugFP, "Disambiguate in:  %d(%d,%d)-(%d,%d) = %d (%c)\n",
-                             closure->pieceIn,closure->ffIn,closure->rfIn,closure->ftIn,closure->rtIn,
-                             closure->promoCharIn, closure->promoCharIn >= ' ' ? closure->promoCharIn : '-');
-    }
     rFilter = closure->rtIn; // [HGM] speed: only consider moves to given to-square
     fFilter = closure->ftIn;
     if(quickFlag) { // [HGM] speed: try without check test first, because if that is not ambiguous, we are happy
@@ -1414,11 +1409,6 @@ Disambiguate (Board board, int flags, DisambiguateClosure *closure)
        */
        closure->kind = IllegalMove;
     }
-    if (appData.debugMode) {
-        fprintf(debugFP, "Disambiguate out: %d(%d,%d)-(%d,%d) = %d (%c)\n",
-        closure->piece,closure->ff,closure->rf,closure->ft,closure->rt,closure->promoChar,
-       closure->promoChar >= ' ' ? closure->promoChar:'-');
-    }
 }
 
 
index 2efea90..c2a5373 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -7347,7 +7347,7 @@ StartChildProcess (char *cmdLine, char *dir, ProcRef *pr)
     char buf[MSG_SIZ];
 
     if (appData.debugMode) {
-       fprintf(stderr, "StartChildProcess (dir=\"%s\") %s\n",dir, cmdLine);
+       fprintf(debugFP, "StartChildProcess (dir=\"%s\") %s\n",dir, cmdLine);
     }
 
     /* We do NOT feed the cmdLine to the shell; we just