From 6054ef1f3c8fe2809cc8ec3e8ae2f8d0142852f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Dani=C3=ABl=20Geelen?= Date: Thu, 5 Apr 2018 20:00:15 +0200 Subject: [PATCH] Log statements in avr_load_firmware() were never printed. --- simavr/sim/run_avr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simavr/sim/run_avr.c b/simavr/sim/run_avr.c index c39d474..531f3a2 100644 --- a/simavr/sim/run_avr.c +++ b/simavr/sim/run_avr.c @@ -183,13 +183,13 @@ main( exit(1); } avr_init(avr); + avr->log = (log > LOG_TRACE ? LOG_TRACE : log); + avr->trace = trace; avr_load_firmware(avr, &f); if (f.flashbase) { printf("Attempted to load a bootloader at %04x\n", f.flashbase); avr->pc = f.flashbase; } - avr->log = (log > LOG_TRACE ? LOG_TRACE : log); - avr->trace = trace; for (int ti = 0; ti < trace_vectors_count; ti++) { for (int vi = 0; vi < avr->interrupts.vector_count; vi++) if (avr->interrupts.vector[vi]->vector == trace_vectors[ti]) -- 2.39.5