diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-06-04 15:26:12 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-06-04 17:30:21 +0200 |
commit | b2cb8d6fb456f3bfe39d746b79a0fbede94f5666 (patch) | |
tree | e775c5f74e08d36b3bdc7a4b1e21b6c0c6199a63 /cpukit/libcsupport/src/printf_plugin.c | |
parent | libtests/block13: Add const qualifier (diff) | |
download | rtems-b2cb8d6fb456f3bfe39d746b79a0fbede94f5666.tar.bz2 |
libcsupport: Add rtems_printf_plugin()
Diffstat (limited to 'cpukit/libcsupport/src/printf_plugin.c')
-rw-r--r-- | cpukit/libcsupport/src/printf_plugin.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/printf_plugin.c b/cpukit/libcsupport/src/printf_plugin.c new file mode 100644 index 0000000000..87913277f9 --- /dev/null +++ b/cpukit/libcsupport/src/printf_plugin.c @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2012 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Obere Lagerstr. 30 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ + +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif + +#include <rtems/bspIo.h> + +#include <stdio.h> + +int rtems_printf_plugin(void *context, const char *format, ...) +{ + int rv; + va_list ap; + + va_start(ap, format); + rv = vprintf(format, ap); + va_end(ap); + + return rv; +} |