From e7895944926367a5c98313f7a52aef1c65dde254 Mon Sep 17 00:00:00 2001 From: Leo C Date: Thu, 3 Jul 2014 00:04:41 +0200 Subject: Tupfile --- avr/debug.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'avr/debug.h') diff --git a/avr/debug.h b/avr/debug.h index 39ae55c..c341301 100644 --- a/avr/debug.h +++ b/avr/debug.h @@ -2,8 +2,11 @@ #ifndef DEBUG_H_ #define DEBUG_H_ +#include + #ifdef DEBUG -#define DBG_P(lvl, ...) if (DEBUG>=lvl) fprintf_P( stderr, __VA_ARGS__ ) +#define DBG_P(lvl, format, ...) if (DEBUG>=lvl) \ + fprintf_P( stderr, PSTR(format), ##__VA_ARGS__ ) #else #define DBG_P(lvl, ...) #endif -- cgit v1.2.3