Make rtems_printf_plugin() static

This commit is contained in:
Sebastian Huber
2016-06-21 13:05:18 +02:00
parent 97fd93c23e
commit 1ce8fc32c3
2 changed files with 6 additions and 19 deletions

View File

@@ -141,19 +141,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
*

View File

@@ -27,14 +27,14 @@
#include <stdio.h>
static int rtems_printf_plugin(void *context, const char *format, va_list ap)
{
(void) context;
return vprintf(format, ap);
}
void rtems_print_printer_printf(rtems_printer *printer)
{
printer->context = NULL;
printer->printer = rtems_printf_plugin;
}
int rtems_printf_plugin(void *context, const char *format, va_list ap)
{
(void) context;
return vprintf(format, ap);
}