diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-21 13:05:18 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-22 07:29:26 +0200 |
commit | 1ce8fc32c3e28f6ffd34d4802710c5245ec7ffcc (patch) | |
tree | 5134ac40b3f28df7ec9c23c83874c9935cb2ef99 | |
parent | Make printk_plugin() static (diff) | |
download | rtems-1ce8fc32c3e28f6ffd34d4802710c5245ec7ffcc.tar.bz2 |
Make rtems_printf_plugin() static
-rw-r--r-- | cpukit/include/rtems/bspIo.h | 13 | ||||
-rw-r--r-- | cpukit/libcsupport/src/printf_plugin.c | 12 |
2 files changed, 6 insertions, 19 deletions
diff --git a/cpukit/include/rtems/bspIo.h b/cpukit/include/rtems/bspIo.h index 958103a7a6..fad4e9dcbc 100644 --- a/cpukit/include/rtems/bspIo.h +++ b/cpukit/include/rtems/bspIo.h @@ -142,19 +142,6 @@ extern void rtems_putc(char c); typedef int (*rtems_print_plugin_t)(void *, const char *format, va_list ap); /** - * @brief Reporting Methods printf() Plugin - * - * This is a standard plug-in to support using printf() for output - * instead of printk(). - * - * @param[in] context Unused. - * @param[in] fmt is a printf()-style format string - * - * @return The number of characters printed. - */ -extern int rtems_printf_plugin(void *context, const char *fmt, va_list ap); - -/** * @brief Reporting Methods fprintf() Plugin * * This is a standard plug-in to support using fprintf() for output diff --git a/cpukit/libcsupport/src/printf_plugin.c b/cpukit/libcsupport/src/printf_plugin.c index 097e4126b5..23ac9f693d 100644 --- a/cpukit/libcsupport/src/printf_plugin.c +++ b/cpukit/libcsupport/src/printf_plugin.c @@ -27,14 +27,14 @@ #include <stdio.h> -void rtems_print_printer_printf(rtems_printer *printer) +static int rtems_printf_plugin(void *context, const char *format, va_list ap) { - printer->context = NULL; - printer->printer = rtems_printf_plugin; + (void) context; + return vprintf(format, ap); } -int rtems_printf_plugin(void *context, const char *format, va_list ap) +void rtems_print_printer_printf(rtems_printer *printer) { - (void) context; - return vprintf(format, ap); + printer->context = NULL; + printer->printer = rtems_printf_plugin; } |