Browse Source

Ensure printing to logwin always goes through _wlog

Luke Dashjr 12 years ago
parent
commit
b56fae87c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      miner.c

+ 2 - 2
miner.c

@@ -2831,7 +2831,7 @@ void _wlog(const char *str)
 void _wlogprint(const char *str)
 {
 	if (curses_active_locked()) {
-		wprintw(logwin, "%s", str);
+		_wlog(str);
 		unlock_curses();
 	}
 }
@@ -2847,7 +2847,7 @@ bool _log_curses_only(int prio, const char *datetime, const char *str)
 	if (curses_active)
 	{
 		if (!opt_loginput || high_prio) {
-			wprintw(logwin, " %s %s\n", datetime, str);
+			wlog(" %s %s\n", datetime, str);
 			if (high_prio) {
 				touchwin(logwin);
 				wrefresh(logwin);