diff --git a/arch/avr/src/avr/up_spi.c b/arch/avr/src/avr/up_spi.c index 66cf745e920..6f13f7cd581 100644 --- a/arch/avr/src/avr/up_spi.c +++ b/arch/avr/src/avr/up_spi.c @@ -66,21 +66,15 @@ * Pre-processor Definitions ****************************************************************************/ -/* Enables debug output from this file (needs CONFIG_DEBUG_FEATURES too) */ +/* Enables debug output from this file */ -#undef SPI_DEBUG /* Define to enable debug */ -#undef SPI_VERBOSE /* Define to enable verbose debug */ - -#ifdef SPI_DEBUG +#ifdef CONFIG_DEBUG_SPI # define spierr llerr -# ifdef SPI_VERBOSE -# define spiinfo llerr -# else -# define spiinfo(x...) -# endif +# define spiwarn llwarn +# define spiinfo llinfo #else -# undef SPI_VERBOSE # define spierr(x...) +# define spiwarn(x...) # define spiinfo(x...) #endif