diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-04 15:23:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-04 15:23:22 +0000 |
commit | 3b23ee2703a28a1b46bbd3eb4835b05ae321de29 (patch) | |
tree | 08c2619903b1002ca7f846dbcf5258e4f7f1a964 /nuttx/lib | |
parent | 6f275ae53307d29e22fde024a6479f80e60baf41 (diff) | |
download | px4-nuttx-3b23ee2703a28a1b46bbd3eb4835b05ae321de29.tar.gz px4-nuttx-3b23ee2703a28a1b46bbd3eb4835b05ae321de29.tar.bz2 px4-nuttx-3b23ee2703a28a1b46bbd3eb4835b05ae321de29.zip |
Add capability to manager memory in discontiguous regions.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@35 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/lib_rawprintf.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nuttx/lib/lib_rawprintf.c b/nuttx/lib/lib_rawprintf.c index 9b65f5a8a..fa2f5a63e 100644 --- a/nuttx/lib/lib_rawprintf.c +++ b/nuttx/lib/lib_rawprintf.c @@ -83,6 +83,8 @@ int lib_rawvprintf(const char *fmt, va_list ap) { +#if CONFIG_NFILE_DESCRIPTORS > 0 + struct lib_rawstream_s rawstream; /* Wrap the stdout in a stream object and let lib_vsprintf @@ -91,6 +93,21 @@ int lib_rawvprintf(const char *fmt, va_list ap) lib_rawstream(&rawstream, 1); return lib_vsprintf(&rawstream.public, fmt, ap); + +#elif defined(CONFIG_ARCH_LOWPUTC) + + struct lib_stream_s stream; + + /* Wrap the stdout in a stream object and let lib_vsprintf + * do the work. + */ + + lib_lowstream(&stream); + return lib_vsprintf(&stream, fmt, ap); + +#else + return 0; +#endif } /************************************************************ |