summaryrefslogtreecommitdiff
path: root/nuttx/configs/sam4e-ek
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-08 14:59:10 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-08 14:59:10 -0600
commit14306ef863a31b5983c13e276837a55f9c834a2c (patch)
tree4c9ed2b57125c6890005fb6166926b3847e47cb6 /nuttx/configs/sam4e-ek
parentea13b6e3d0dc0770d4c493ee7a6d1d9f9b884a45 (diff)
downloadpx4-nuttx-14306ef863a31b5983c13e276837a55f9c834a2c.tar.gz
px4-nuttx-14306ef863a31b5983c13e276837a55f9c834a2c.tar.bz2
px4-nuttx-14306ef863a31b5983c13e276837a55f9c834a2c.zip
All USB MSC-related files under nuttx/configs changed to use the corrected syslog interfaces
Diffstat (limited to 'nuttx/configs/sam4e-ek')
-rw-r--r--nuttx/configs/sam4e-ek/src/sam_usbmsc.c28
1 files changed, 4 insertions, 24 deletions
diff --git a/nuttx/configs/sam4e-ek/src/sam_usbmsc.c b/nuttx/configs/sam4e-ek/src/sam_usbmsc.c
index ad5571107..e8bafad56 100644
--- a/nuttx/configs/sam4e-ek/src/sam_usbmsc.c
+++ b/nuttx/configs/sam4e-ek/src/sam_usbmsc.c
@@ -42,7 +42,7 @@
#include <nuttx/config.h>
#include <stdio.h>
-#include <debug.h>
+#include <syslog.h>
#include <errno.h>
#include "sam4e-ek.h"
@@ -74,26 +74,6 @@
# undef CONFIG_SAM4EEK_HSMCI_BLOCKDEVICE
#endif
-/* Debug ********************************************************************/
-
-#ifdef CONFIG_CPP_HAVE_VARARGS
-# ifdef CONFIG_DEBUG
-# define message(...) lowsyslog(__VA_ARGS__)
-# define msgflush()
-# else
-# define message(...) printf(__VA_ARGS__)
-# define msgflush() fflush(stdout)
-# endif
-#else
-# ifdef CONFIG_DEBUG
-# define message lowsyslog
-# define msgflush()
-# else
-# define message printf
-# define msgflush() fflush(stdout)
-# endif
-#endif
-
/****************************************************************************
* Public Functions
****************************************************************************/
@@ -114,7 +94,7 @@ int usbmsc_archinitialize(void)
int ret = sam_at25_automount(0);
if (ret < 0)
{
- message("ERROR: sam_at25_automount failed: %d\n", ret);
+ syslog(LOG_ERR, "ERROR: sam_at25_automount failed: %d\n", ret);
}
return ret;
@@ -122,10 +102,10 @@ int usbmsc_archinitialize(void)
#elif defined(CONFIG_SAM4EEK_HSMCI_BLOCKDEVICE)
/* Initialize the HSMCI driver */
- ret = sam_hsmci_initialize(0);
+ int ret = sam_hsmci_initialize(0);
if (ret < 0)
{
- message("ERROR: sam_hsmci_initialize(0) failed: %d\n", ret);
+ syslog(LOG_ERR, "ERROR: sam_hsmci_initialize(0) failed: %d\n", ret);
}
return ret;