diff options
Diffstat (limited to 'nuttx/examples/uip/main.c')
-rw-r--r-- | nuttx/examples/uip/main.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/nuttx/examples/uip/main.c b/nuttx/examples/uip/main.c index fd67ff95f..1cc275814 100644 --- a/nuttx/examples/uip/main.c +++ b/nuttx/examples/uip/main.c @@ -86,10 +86,18 @@ * Definitions ****************************************************************************/ -#ifdef CONFIG_DEBUG -# define message(...) lib_lowprintf(__VA_ARGS__) +#ifdef CONFIG_CPP_HAVE_VARARGS +# ifdef CONFIG_DEBUG +# define message(...) lib_lowprintf(__VA_ARGS__) +# else +# define message(...) printf(__VA_ARGS__) +# endif #else -# define message(...) printf(__VA_ARGS__) +# ifdef CONFIG_DEBUG +# define message lib_lowprintf +# else +# define message (void) +# endif #endif /**************************************************************************** |