From: Marco Costalba Date: Mon, 23 May 2011 14:37:54 +0000 (+0200) Subject: Output debug info to cerr X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=bc86668ba4e7c88edee9f868d9322a061da53a0d Output debug info to cerr So to be clearly visible when redirecting stdout to /dev/null No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/misc.cpp b/src/misc.cpp index cb2ea168..d5383643 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -103,14 +103,14 @@ static uint64_t dbg_mean_cnt1; void dbg_print_hit_rate() { if (dbg_hit_cnt0) - cout << "Total " << dbg_hit_cnt0 << " Hit " << dbg_hit_cnt1 + cerr << "Total " << dbg_hit_cnt0 << " Hit " << dbg_hit_cnt1 << " hit rate (%) " << 100 * dbg_hit_cnt1 / dbg_hit_cnt0 << endl; } void dbg_print_mean() { if (dbg_mean_cnt0) - cout << "Total " << dbg_mean_cnt0 << " Mean " + cerr << "Total " << dbg_mean_cnt0 << " Mean " << (float)dbg_mean_cnt1 / dbg_mean_cnt0 << endl; }