diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-11 14:20:40 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-11 14:20:40 +0000 |
commit | 75e67f05d4b97efc32d95b478ec1c1f959992a4b (patch) | |
tree | 8cf471347f767130a152b249bafd7de1a6017757 /nuttx/arch/x86/src/common | |
parent | 4a62de545bf87610c2415218e144ddef4dd0e75c (diff) | |
download | px4-nuttx-75e67f05d4b97efc32d95b478ec1c1f959992a4b.tar.gz px4-nuttx-75e67f05d4b97efc32d95b478ec1c1f959992a4b.tar.bz2 px4-nuttx-75e67f05d4b97efc32d95b478ec1c1f959992a4b.zip |
Add logic to re-direct debug output to a sysloggin device
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4381 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/x86/src/common')
-rw-r--r-- | nuttx/arch/x86/src/common/up_initialize.c | 8 | ||||
-rw-r--r-- | nuttx/arch/x86/src/common/up_internal.h | 14 |
2 files changed, 14 insertions, 8 deletions
diff --git a/nuttx/arch/x86/src/common/up_initialize.c b/nuttx/arch/x86/src/common/up_initialize.c index 92d4d3537..eb0cdccc1 100644 --- a/nuttx/arch/x86/src/common/up_initialize.c +++ b/nuttx/arch/x86/src/common/up_initialize.c @@ -43,6 +43,8 @@ #include <nuttx/arch.h> #include <nuttx/fs.h> +#include <nuttx/ramlog.h> + #include <arch/board/board.h> #include "up_arch.h" @@ -159,6 +161,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/x86/src/common/up_internal.h b/nuttx/arch/x86/src/common/up_internal.h index f95a9bc74..c840cf90b 100644 --- a/nuttx/arch/x86/src/common/up_internal.h +++ b/nuttx/arch/x86/src/common/up_internal.h @@ -80,6 +80,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 @@ -203,14 +209,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); |