forked from Imagelibrary/rtems
Make rtems_printf_plugin() static
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user