From a841d3b604928c71f6d24896e72a818e69d28210 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 16 Feb 2012 14:58:45 +0100 Subject: [PATCH] Delete some load-game debug printing 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 | 10 ---------- xboard.c | 2 +- 2 files changed, 1 insertions(+), 11 deletions(-) diff --git a/moves.c b/moves.c index 12e2057..5f6aad5 100644 --- 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:'-'); - } } diff --git a/xboard.c b/xboard.c index 2efea90..c2a5373 100644 --- 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 -- 1.7.0.4