From d4408117ddbafecd37f8540d755322b52cb8de3f Mon Sep 17 00:00:00 2001 From: Jakob Gruber Date: Thu, 2 Aug 2012 11:07:59 +0200 Subject: [PATCH] elf: Convert logging to AVR_LOG() --- simavr/sim/sim_elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simavr/sim/sim_elf.c b/simavr/sim/sim_elf.c index 89ce5af..fee7cb8 100644 --- a/simavr/sim/sim_elf.c +++ b/simavr/sim/sim_elf.c @@ -77,7 +77,7 @@ void avr_load_firmware(avr_t * avr, elf_firmware_t * firmware) // easy one avr_irq_t * all = avr_iomem_getirq(avr, firmware->trace[ti].addr, AVR_IOMEM_IRQ_ALL); if (!all) { - printf("%s: unable to attach trace to address %04x\n", + AVR_LOG(avr, LOG_ERROR, "ELF: %s: unable to attach trace to address %04x\n", __FUNCTION__, firmware->trace[ti].addr); } else { avr_vcd_add_signal(avr->vcd, all, 8, firmware->trace[ti].name); @@ -91,7 +91,7 @@ void avr_load_firmware(avr_t * avr, elf_firmware_t * firmware) if (firmware->trace[ti].mask & (1 << bi)) { avr_irq_t * bit = avr_iomem_getirq(avr, firmware->trace[ti].addr, bi); if (!bit) { - printf("%s: unable to attach trace to address %04x\n", + AVR_LOG(avr, LOG_ERROR, "ELF: %s: unable to attach trace to address %04x\n", __FUNCTION__, firmware->trace[ti].addr); break; } -- 2.39.5