diff options
Diffstat (limited to 'nuttx/arch/mips')
-rw-r--r-- | nuttx/arch/mips/src/common/up_initialize.c | 8 | ||||
-rwxr-xr-x | nuttx/arch/mips/src/common/up_internal.h | 14 |
2 files changed, 14 insertions, 8 deletions
diff --git a/nuttx/arch/mips/src/common/up_initialize.c b/nuttx/arch/mips/src/common/up_initialize.c index 0a061990b..11bd979f0 100644 --- a/nuttx/arch/mips/src/common/up_initialize.c +++ b/nuttx/arch/mips/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/mips/src/common/up_internal.h b/nuttx/arch/mips/src/common/up_internal.h index 25b5174a5..d43580c65 100755 --- a/nuttx/arch/mips/src/common/up_internal.h +++ b/nuttx/arch/mips/src/common/up_internal.h @@ -81,6 +81,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 @@ -188,14 +194,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 - /* Debug */ #ifdef CONFIG_ARCH_STACKDUMP |