diff options
Diffstat (limited to 'nuttx/arch/sim/src/up_initialize.c')
-rw-r--r-- | nuttx/arch/sim/src/up_initialize.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/nuttx/arch/sim/src/up_initialize.c b/nuttx/arch/sim/src/up_initialize.c index 4e07904e4..a850d7c69 100644 --- a/nuttx/arch/sim/src/up_initialize.c +++ b/nuttx/arch/sim/src/up_initialize.c @@ -1,8 +1,8 @@ /**************************************************************************** * up_initialize.c * - * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -43,6 +43,7 @@ #include <nuttx/arch.h> #include <nuttx/fs.h> +#include <nuttx/ramlog.h> #include "up_internal.h" @@ -50,6 +51,12 @@ * Private Definitions ****************************************************************************/ +/* Determine which device to use as the system loggin device */ + +#ifndef CONFIG_SYSLOG +# undef CONFIG_RAMLOG_SYSLOG +#endif + /**************************************************************************** * Private Data ****************************************************************************/ @@ -99,6 +106,10 @@ void up_initialize(void) devzero_register(); /* Standard /dev/zero */ up_devconsole(); /* Our private /dev/console */ +#ifdef CONFIG_RAMLOG_SYSLOG + ramlog_sysloginit(); /* System logging device */ +#endif + #if defined(CONFIG_FS_FAT) && !defined(CONFIG_DISABLE_MOUNTPOINT) up_registerblockdevice(); /* Our FAT ramdisk at /dev/ram0 */ #endif |