aboutsummaryrefslogtreecommitdiff
path: root/nuttx/fs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-27 19:17:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-27 19:17:56 +0000
commitb4db7635d85361c3cb8a718d5f460000b7123fb3 (patch)
tree5ca1c52a94dad3a4051fa21fe15a58f02a7b727d /nuttx/fs
parente96d8f046b6bce6c4e810b302c1cc1cc578bdae3 (diff)
downloadpx4-firmware-b4db7635d85361c3cb8a718d5f460000b7123fb3.tar.gz
px4-firmware-b4db7635d85361c3cb8a718d5f460000b7123fb3.tar.bz2
px4-firmware-b4db7635d85361c3cb8a718d5f460000b7123fb3.zip
Add configs/stm32f4discovery/usbnsh
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5572 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r--nuttx/fs/Kconfig23
-rw-r--r--nuttx/fs/fs_syslog.c2
2 files changed, 14 insertions, 11 deletions
diff --git a/nuttx/fs/Kconfig b/nuttx/fs/Kconfig
index ab03a2b64..e6647f516 100644
--- a/nuttx/fs/Kconfig
+++ b/nuttx/fs/Kconfig
@@ -24,23 +24,26 @@ config SYSLOG
---help---
Enables generic system logging features.
-config SYSLOG_DEVPATH
- string "System log device"
- default "/dev/syslog"
- depends on SYSLOG
- ---help---
- The full path to the system logging device. For the RAMLOG SYSLOG device,
- this is normally "/dev/ramlog". For character SYSLOG devices, it should be
- some other existing character device (or file) supported by the configuration
- (such as "/dev/ttyS1")/
+if SYSLOG
config SYSLOG_CHAR
bool "System log character device support"
default y
- depends on SYSLOG
---help---
Enable the generic character device for the SYSLOG. The full path to the
SYSLOG device is provided by SYSLOG_DEVPATH. A valid character device (or
file) must exist at this path. It will by opened by syslog_initialize.
Do not enable more than one SYSLOG device.
+
+config SYSLOG_DEVPATH
+ string "System log device"
+ default "/dev/syslog"
+ depends on SYSLOG_CHAR
+ ---help---
+ The full path to the system logging device. For the RAMLOG SYSLOG device,
+ this is normally "/dev/ramlog". For character SYSLOG devices, it should be
+ some other existing character device (or file) supported by the configuration
+ (such as "/dev/ttyS1")/
+
+endif
diff --git a/nuttx/fs/fs_syslog.c b/nuttx/fs/fs_syslog.c
index 1d569082a..f348bdb03 100644
--- a/nuttx/fs/fs_syslog.c
+++ b/nuttx/fs/fs_syslog.c
@@ -265,7 +265,7 @@ int syslog_initialize(void)
{
/* The inode was not found. In this case, we will attempt to re-open
* the device repeatedly. The assumption is that the device path is
- * value but that the driver has not yet been registered.
+ * valid but that the driver has not yet been registered.
*/
g_sysdev.sl_state = SYSLOG_REOPEN;