From: Jakob Gruber Date: Thu, 2 Aug 2012 08:30:55 +0000 (+0200) Subject: bitbang: Convert logging to AVR_LOG() X-Git-Tag: v1.0~27 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=ea0174503284b7b30c6ee4a473ae7aaba0f7427b;p=sx%2Fsimavr.git bitbang: Convert logging to AVR_LOG() --- diff --git a/simavr/sim/avr_bitbang.c b/simavr/sim/avr_bitbang.c index 040273c..e34aab2 100644 --- a/simavr/sim/avr_bitbang.c +++ b/simavr/sim/avr_bitbang.c @@ -189,8 +189,8 @@ void avr_bitbang_reset(avr_t *avr, avr_bitbang_t * p) p->data = 0; if ( p->buffer_size < 1 || p->buffer_size > 32 ) { - fprintf(stderr, - "Error: bitbang buffer size should be between 1 and 32. set value: %d\n", p->buffer_size); + AVR_LOG(avr, LOG_ERROR, + "Error: bitbang buffer size should be between 1 and 32. set value: %d\n", p->buffer_size); abort(); }