diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-30 20:06:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-30 20:06:24 +0000 |
commit | 089fb0b4963141512ef007d6a00b76d4f190c28d (patch) | |
tree | 274f019eecf69774c70b064e90d4abc20e10d4e5 /nuttx/lib/lib_rawprintf.c | |
parent | 2cbe4bfe9077608ae738c26dcd69188ecf12cf4d (diff) | |
download | px4-nuttx-089fb0b4963141512ef007d6a00b76d4f190c28d.tar.gz px4-nuttx-089fb0b4963141512ef007d6a00b76d4f190c28d.tar.bz2 px4-nuttx-089fb0b4963141512ef007d6a00b76d4f190c28d.zip |
Extend lib to handle incoming streams
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1840 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_rawprintf.c')
-rw-r--r-- | nuttx/lib/lib_rawprintf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/lib/lib_rawprintf.c b/nuttx/lib/lib_rawprintf.c index 7b61c299d..9999b8ecc 100644 --- a/nuttx/lib/lib_rawprintf.c +++ b/nuttx/lib/lib_rawprintf.c @@ -1,7 +1,7 @@ /**************************************************************************** * lib/lib_rawprintf.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -85,25 +85,25 @@ int lib_rawvprintf(const char *fmt, va_list ap) { #if CONFIG_NFILE_DESCRIPTORS > 0 - struct lib_rawstream_s rawstream; + struct lib_rawoutstream_s rawoutstream; /* Wrap the stdout in a stream object and let lib_vsprintf * do the work. */ - lib_rawstream(&rawstream, 1); - return lib_vsprintf(&rawstream.public, fmt, ap); + lib_rawoutstream(&rawoutstream, 1); + return lib_vsprintf(&rawoutstream.public, fmt, ap); #elif defined(CONFIG_ARCH_LOWPUTC) - struct lib_stream_s stream; + struct lib_outstream_s stream; /* Wrap the low-level output in a stream object and let lib_vsprintf * do the work. */ - lib_lowstream((FAR struct lib_stream_s *)&stream); - return lib_vsprintf((FAR struct lib_stream_s *)&stream, fmt, ap); + lib_lowoutstream((FAR struct lib_outstream_s *)&stream); + return lib_vsprintf((FAR struct lib_outstream_s *)&stream, fmt, ap); #else return 0; |