summaryrefslogtreecommitdiff
path: root/nuttx/configs/shenzhou/src
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-08 14:28:55 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-08 14:28:55 -0600
commitea13b6e3d0dc0770d4c493ee7a6d1d9f9b884a45 (patch)
tree03e459590b0f781d06f0f23fa6d84c1c31433a82 /nuttx/configs/shenzhou/src
parentfe77b16ab68a41379e4d9f84e5a29d6bd9fd1323 (diff)
downloadpx4-nuttx-ea13b6e3d0dc0770d4c493ee7a6d1d9f9b884a45.tar.gz
px4-nuttx-ea13b6e3d0dc0770d4c493ee7a6d1d9f9b884a45.tar.bz2
px4-nuttx-ea13b6e3d0dc0770d4c493ee7a6d1d9f9b884a45.zip
All NSH-related files under nuttx/configs changed to use the corrected syslog interfaces
Diffstat (limited to 'nuttx/configs/shenzhou/src')
-rw-r--r--nuttx/configs/shenzhou/src/up_nsh.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/nuttx/configs/shenzhou/src/up_nsh.c b/nuttx/configs/shenzhou/src/up_nsh.c
index 0b9802581..2e8726f51 100644
--- a/nuttx/configs/shenzhou/src/up_nsh.c
+++ b/nuttx/configs/shenzhou/src/up_nsh.c
@@ -42,7 +42,7 @@
#include <stdbool.h>
#include <stdio.h>
-#include <debug.h>
+#include <syslog.h>
#include <errno.h>
#include "stm32.h"
@@ -145,22 +145,6 @@
# undef HAVE_USBHOST
#endif
-/* 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
****************************************************************************/
@@ -185,7 +169,7 @@ int nsh_archinitialize(void)
ret = stm32_w25initialize(CONFIG_NSH_W25MINOR);
if (ret < 0)
{
- message("nsh_archinitialize: Failed to initialize W25 minor %d: %d\n",
+ syslog(LOG_ERR, "ERROR: Failed to initialize W25 minor %d: %d\n",
CONFIG_NSH_W25MINOR, ret);
return ret;
}
@@ -197,7 +181,7 @@ int nsh_archinitialize(void)
ret = stm32_sdinitialize(CONFIG_NSH_MMCSDMINOR);
if (ret < 0)
{
- message("nsh_archinitialize: Failed to initialize MMC/SD slot %d: %d\n",
+ syslog(LOG_ERR, "ERROR: Failed to initialize MMC/SD slot %d: %d\n",
CONFIG_NSH_MMCSDSLOTNO, ret);
return ret;
}
@@ -211,7 +195,7 @@ int nsh_archinitialize(void)
ret = stm32_usbhost_initialize();
if (ret != OK)
{
- message("nsh_archinitialize: Failed to initialize USB host: %d\n", ret);
+ syslog(LOG_ERR, "ERROR: Failed to initialize USB host: %d\n", ret);
return ret;
}
#endif