From ea0174503284b7b30c6ee4a473ae7aaba0f7427b Mon Sep 17 00:00:00 2001 From: Jakob Gruber Date: Thu, 2 Aug 2012 10:30:55 +0200 Subject: [PATCH] bitbang: Convert logging to AVR_LOG() --- simavr/sim/avr_bitbang.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.39.5