diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-08 14:28:55 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-08 14:28:55 -0600 |
commit | ea13b6e3d0dc0770d4c493ee7a6d1d9f9b884a45 (patch) | |
tree | 03e459590b0f781d06f0f23fa6d84c1c31433a82 /nuttx/configs/stm32_tiny | |
parent | fe77b16ab68a41379e4d9f84e5a29d6bd9fd1323 (diff) | |
download | nuttx-ea13b6e3d0dc0770d4c493ee7a6d1d9f9b884a45.tar.gz nuttx-ea13b6e3d0dc0770d4c493ee7a6d1d9f9b884a45.tar.bz2 nuttx-ea13b6e3d0dc0770d4c493ee7a6d1d9f9b884a45.zip |
All NSH-related files under nuttx/configs changed to use the corrected syslog interfaces
Diffstat (limited to 'nuttx/configs/stm32_tiny')
-rw-r--r-- | nuttx/configs/stm32_tiny/src/up_nsh.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/nuttx/configs/stm32_tiny/src/up_nsh.c b/nuttx/configs/stm32_tiny/src/up_nsh.c index cbef9ac41..1ceb3b56c 100644 --- a/nuttx/configs/stm32_tiny/src/up_nsh.c +++ b/nuttx/configs/stm32_tiny/src/up_nsh.c @@ -41,7 +41,7 @@ #include <stdbool.h> #include <stdio.h> -#include <debug.h> +#include <syslog.h> #include <errno.h> #include "stm32.h" @@ -51,22 +51,6 @@ * Pre-Processor Definitions ****************************************************************************/ -/* Debug ********************************************************************/ - -#ifdef CONFIG_CPP_HAVE_VARARGS -# ifdef CONFIG_DEBUG -# define message(...) lowsyslog(__VA_ARGS__) -# else -# define message(...) printf(__VA_ARGS__) -# endif -#else -# ifdef CONFIG_DEBUG -# define message lowsyslog -# else -# define message printf -# endif -#endif - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -82,7 +66,7 @@ int nsh_archinitialize(void) { #if defined(CONFIG_WL_NRF24L01) - message("Register the nRF24L01 module"); + syslog(LOG_INFO, "Register the nRF24L01 module"); up_wlinitialize(); #endif |