From: Jakob Gruber Date: Thu, 2 Aug 2012 09:07:34 +0000 (+0200) Subject: cycle_timers: Convert logging to AVR_LOG() X-Git-Tag: v1.0~19 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=a484094a573be799af56d7a139aac82ec5c081b9;p=sx%2Fsimavr.git cycle_timers: Convert logging to AVR_LOG() --- diff --git a/simavr/sim/sim_cycle_timers.c b/simavr/sim/sim_cycle_timers.c index f3cbdd3..170aeed 100644 --- a/simavr/sim/sim_cycle_timers.c +++ b/simavr/sim/sim_cycle_timers.c @@ -90,7 +90,7 @@ avr_cycle_timer_register( avr_cycle_timer_cancel(avr, timer, param); if (pool->count == MAX_CYCLE_TIMERS) { - fprintf(stderr, "%s: pool is full (%d)!\n", __func__, MAX_CYCLE_TIMERS); + AVR_LOG(avr, LOG_ERROR, "CYCLE: %s: pool is full (%d)!\n", __func__, MAX_CYCLE_TIMERS); return; } avr_cycle_timer_insert(avr, when, timer, param);