From 131a25010e53eb114d0c13e587098f48f348e9ba Mon Sep 17 00:00:00 2001 From: ga Date: Fri, 6 May 2022 17:52:57 +0100 Subject: [PATCH] Correct output streams for logging output. --- simavr/sim/sim_avr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/sim/sim_avr.c b/simavr/sim/sim_avr.c index 4c2602c..24cb244 100644 --- a/simavr/sim/sim_avr.c +++ b/simavr/sim/sim_avr.c @@ -447,7 +447,7 @@ std_logger( va_list ap) { if (!avr || avr->log >= level) { - vfprintf((level > LOG_ERROR) ? stdout : stderr , format, ap); + vfprintf((level < LOG_ERROR) ? stdout : stderr, format, ap); } } -- 2.39.5