summaryrefslogtreecommitdiffstats
path: root/nuttx/arch/sh
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-11 14:20:40 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-11 14:20:40 +0000
commite6e43e583c91e336de6de01e0e1fad3a5ebb2267 (patch)
tree8cf471347f767130a152b249bafd7de1a6017757 /nuttx/arch/sh
parent910a9ac9dde1ea38e5bb9e0101cd3687d53c1518 (diff)
Add logic to re-direct debug output to a sysloggin device
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4381 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/sh')
-rw-r--r--nuttx/arch/sh/src/common/up_initialize.c7
-rw-r--r--nuttx/arch/sh/src/common/up_internal.h14
2 files changed, 13 insertions, 8 deletions
diff --git a/nuttx/arch/sh/src/common/up_initialize.c b/nuttx/arch/sh/src/common/up_initialize.c
index b81e3b9723..837b218a04 100644
--- a/nuttx/arch/sh/src/common/up_initialize.c
+++ b/nuttx/arch/sh/src/common/up_initialize.c
@@ -43,6 +43,7 @@
#include <nuttx/arch.h>
#include <nuttx/fs.h>
+#include <nuttx/ramlog.h>
#include "up_arch.h"
#include "up_internal.h"
@@ -150,6 +151,12 @@ void up_initialize(void)
ramlog_consoleinit();
#endif
+ /* Initialize the system logging device */
+
+#ifdef CONFIG_RAMLOG_SYSLOG
+ ramlog_sysloginit();
+#endif
+
/* Initialize the netwok */
up_netinitialize();
diff --git a/nuttx/arch/sh/src/common/up_internal.h b/nuttx/arch/sh/src/common/up_internal.h
index 1b6e41635b..50aad14787 100644
--- a/nuttx/arch/sh/src/common/up_internal.h
+++ b/nuttx/arch/sh/src/common/up_internal.h
@@ -85,6 +85,12 @@
# endif
#endig
+/* Determine which device to use as the system loggin device */
+
+#ifndef CONFIG_SYSLOG
+# undef CONFIG_RAMLOG_SYSLOG
+#endif
+
/* Check if an interrupt stack size is configured */
#ifndef CONFIG_ARCH_INTERRUPTSTACK
@@ -177,14 +183,6 @@ extern void lowconsole_init(void);
# define lowconsole_init()
#endif
-/* Defined in drivers/ramlog.c */
-
-#ifdef CONFIG_RAMLOG_CONSOLE
-extern void ramlog_consoleinit(void);
-#else
-# define ramlog_consoleinit()
-#endif
-
/* Defined in up_watchdog.c */
extern void up_wdtinit(void);