From: H.G. Muller Date: Thu, 16 Feb 2012 13:58:45 +0000 (+0100) Subject: Delete some load-game debug printing X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=a841d3b604928c71f6d24896e72a818e69d28210;p=xboard.git 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. --- 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