From: ga Date: Fri, 6 May 2022 16:52:57 +0000 (+0100) Subject: Correct output streams for logging output. X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=131a25010e53eb114d0c13e587098f48f348e9ba;p=sx%2Fsimavr.git Correct output streams for logging output. --- 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); } }