From 03a82e0a039d8ce3bea5cc97c181d649b97d6edf Mon Sep 17 00:00:00 2001 From: px4dev Date: Thu, 29 Nov 2012 00:33:44 -0800 Subject: Fix includes for debug output. --- apps/px4io/px4io.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/px4io') diff --git a/apps/px4io/px4io.h b/apps/px4io/px4io.h index f50e29252..0a3a4448c 100644 --- a/apps/px4io/px4io.h +++ b/apps/px4io/px4io.h @@ -56,10 +56,11 @@ * Debug logging */ -#if 1 -# define debug(fmt, ...) lib_lowprintf(fmt "\n", ##args) +#ifdef DEBUG +# include +# define debug(fmt, args...) lib_lowprintf(fmt "\n", ##args) #else -# define debug(fmt, ...) do {} while(0) +# define debug(fmt, args...) do {} while(0) #endif /* -- cgit v1.2.3