diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-08-02 00:42:46 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-08-02 00:42:46 +0000 |
commit | 6913926a9621d7aa92c89a44d7946290d299dcde (patch) | |
tree | f5f5fb874369d5379c1bdd728e0789c499e7ce81 /nuttx/lib | |
parent | 20324504d5997b2ddad85ec3bfa91544c09edd2a (diff) | |
download | px4-firmware-6913926a9621d7aa92c89a44d7946290d299dcde.tar.gz px4-firmware-6913926a9621d7aa92c89a44d7946290d299dcde.tar.bz2 px4-firmware-6913926a9621d7aa92c89a44d7946290d299dcde.zip |
Move RAMLOG driver to drivers/syslog; Add ability to output debug information to any character device or file
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4996 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/stdio/lib_lowprintf.c | 2 | ||||
-rw-r--r-- | nuttx/lib/stdio/lib_syslogstream.c | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/nuttx/lib/stdio/lib_lowprintf.c b/nuttx/lib/stdio/lib_lowprintf.c index 50a6568fb..392ef2c6a 100644 --- a/nuttx/lib/stdio/lib_lowprintf.c +++ b/nuttx/lib/stdio/lib_lowprintf.c @@ -94,7 +94,7 @@ int lib_lowvprintf(const char *fmt, va_list ap) /* Wrap the stdout in a stream object and let lib_vsprintf do the work. */ -#if defined(CONFIG_RAMLOG_CONSOLE) || defined(CONFIG_RAMLOG_SYSLOG) +#ifdef CONFIG_SYSLOG lib_syslogstream((FAR struct lib_outstream_s *)&stream); #else lib_lowoutstream((FAR struct lib_outstream_s *)&stream); diff --git a/nuttx/lib/stdio/lib_syslogstream.c b/nuttx/lib/stdio/lib_syslogstream.c index a3fa5546d..20c6165ca 100644 --- a/nuttx/lib/stdio/lib_syslogstream.c +++ b/nuttx/lib/stdio/lib_syslogstream.c @@ -42,7 +42,7 @@ #include <unistd.h> #include <errno.h> -#include <nuttx/ramlog.h> +#include <nuttx/syslog.h> #include "lib_internal.h" @@ -62,12 +62,10 @@ static void syslogstream_putc(FAR struct lib_outstream_s *this, int ch) { - /* At present, the RAM log is the only supported logging device */ + /* Write the character to the supported logging device */ -#ifdef CONFIG_RAMLOG_SYSLOG - (void)ramlog_putc(ch); + (void)syslog_putc(ch); this->nput++; -#endif } /**************************************************************************** |