summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_vfprintf.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-30 20:06:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-30 20:06:24 +0000
commit089fb0b4963141512ef007d6a00b76d4f190c28d (patch)
tree274f019eecf69774c70b064e90d4abc20e10d4e5 /nuttx/lib/lib_vfprintf.c
parent2cbe4bfe9077608ae738c26dcd69188ecf12cf4d (diff)
downloadpx4-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_vfprintf.c')
-rw-r--r--nuttx/lib/lib_vfprintf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/lib/lib_vfprintf.c b/nuttx/lib/lib_vfprintf.c
index 197b27856..38da9c028 100644
--- a/nuttx/lib/lib_vfprintf.c
+++ b/nuttx/lib/lib_vfprintf.c
@@ -1,7 +1,7 @@
/****************************************************************************
* lib/lib_vfprintf.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
@@ -77,7 +77,7 @@
int vfprintf(FAR FILE *stream, FAR const char *fmt, va_list ap)
{
- struct lib_stdstream_s stdstream;
+ struct lib_stdoutstream_s stdoutstream;
int n = ERROR;
if (stream)
@@ -86,7 +86,7 @@ int vfprintf(FAR FILE *stream, FAR const char *fmt, va_list ap)
* do the work.
*/
- lib_stdstream(&stdstream, stream);
+ lib_stdoutstream(&stdoutstream, stream);
/* Hold the stream semaphore throughout the lib_vsprintf
* call so that this thread can get its entire message out
@@ -94,7 +94,7 @@ int vfprintf(FAR FILE *stream, FAR const char *fmt, va_list ap)
*/
lib_take_semaphore(stream);
- n = lib_vsprintf(&stdstream.public, fmt, ap);
+ n = lib_vsprintf(&stdoutstream.public, fmt, ap);
lib_give_semaphore(stream);
}
return n;