From 3242614d92130639ea55c2457a17ae313662f0c4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 31 May 2016 09:44:49 +0200 Subject: Fix rtems_print_printer_fprintf() We must use vfprintf(). --- cpukit/include/rtems/bspIo.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'cpukit/include/rtems/bspIo.h') diff --git a/cpukit/include/rtems/bspIo.h b/cpukit/include/rtems/bspIo.h index 403b857e43..a7fd9590ee 100644 --- a/cpukit/include/rtems/bspIo.h +++ b/cpukit/include/rtems/bspIo.h @@ -144,7 +144,7 @@ typedef int (*rtems_print_plugin_t)(void *, const char *format, va_list ap); /** * @brief Reporting Methods printk() Plugin * - * @param[in] context points to a user defined context. + * @param[in] context Unused. * @param[in] fmt is a printf()-style format string * * @return The number of characters printed. @@ -157,13 +157,26 @@ extern int printk_plugin(void *context, const char *fmt, va_list ap); * This is a standard plug-in to support using printf() for output * instead of printk(). * - * @param[in] context points to a user defined context. + * @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 + * instead of printk(). + * + * @param[in] context The file stream. + * @param[in] fmt is a printf()-style format string + * + * @return The number of characters printed. + */ +extern int rtems_fprintf_plugin(void *context, const char *fmt, va_list ap); + /**@}*/ #ifdef __cplusplus -- cgit v1.2.3