From: Jakob Gruber Date: Thu, 2 Aug 2012 09:07:59 +0000 (+0200) Subject: elf: Convert logging to AVR_LOG() X-Git-Tag: v1.0~18 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=d4408117ddbafecd37f8540d755322b52cb8de3f;p=sx%2Fsimavr.git elf: Convert logging to AVR_LOG() --- 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; }