All NSH-related files under nuttx/configs changed to use the corrected syslog interfaces

This commit is contained in:
Gregory Nutt
2014-10-08 14:28:55 -06:00
parent 6a178608fb
commit 4d851b150d
57 changed files with 438 additions and 1266 deletions
+4 -19
View File
@@ -40,7 +40,7 @@
#include <nuttx/config.h>
#include <stdio.h>
#include <debug.h>
#include <syslog.h>
#include "arduino-due.h"
@@ -66,22 +66,6 @@
# endif
#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
****************************************************************************/
@@ -104,8 +88,9 @@ int nsh_archinitialize(void)
int ret = sam_sdinitialize(CONFIG_NSH_MMCSDMINOR);
if (ret < 0)
{
message("nsh_archinitialize: Failed to initialize MMC/SD slot: %d\n",
ret);
syslog(LOG_ERR,
"nsh_archinitialize: Failed to initialize MMC/SD slot: %d\n",
ret);
return ret;
}
}