summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-21 13:03:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-22 07:29:25 +0200
commit97fd93c23e7fef6bb5f803f0b0ebbdfd8f3485d6 (patch)
treed3df5a2924478b2403f513ee40319a8835a732e1
parent91043bfa917132c9cb18b09a89170379e3d6e5a2 (diff)
downloadrtems-97fd93c23e7fef6bb5f803f0b0ebbdfd8f3485d6.tar.bz2
Make printk_plugin() static
-rw-r--r--cpukit/include/rtems/bspIo.h10
-rw-r--r--cpukit/libcsupport/src/printk_plugin.c19
2 files changed, 9 insertions, 20 deletions
diff --git a/cpukit/include/rtems/bspIo.h b/cpukit/include/rtems/bspIo.h
index a7fd9590ee..958103a7a6 100644
--- a/cpukit/include/rtems/bspIo.h
+++ b/cpukit/include/rtems/bspIo.h
@@ -142,16 +142,6 @@ extern void rtems_putc(char c);
typedef int (*rtems_print_plugin_t)(void *, const char *format, va_list ap);
/**
- * @brief Reporting Methods printk() Plugin
- *
- * @param[in] context Unused.
- * @param[in] fmt is a printf()-style format string
- *
- * @return The number of characters printed.
- */
-extern int printk_plugin(void *context, const char *fmt, va_list ap);
-
-/**
* @brief Reporting Methods printf() Plugin
*
* This is a standard plug-in to support using printf() for output
diff --git a/cpukit/libcsupport/src/printk_plugin.c b/cpukit/libcsupport/src/printk_plugin.c
index 3ecacb8a28..485346d2f6 100644
--- a/cpukit/libcsupport/src/printk_plugin.c
+++ b/cpukit/libcsupport/src/printk_plugin.c
@@ -18,18 +18,9 @@
#include "config.h"
#endif
-#include <stdarg.h>
#include <rtems/print.h>
-void rtems_print_printer_printk(
- rtems_printer *printer
-)
-{
- printer->context = NULL;
- printer->printer = printk_plugin;
-}
-
-int printk_plugin(
+static int printk_plugin(
void *ignored,
const char *format,
va_list ap
@@ -39,3 +30,11 @@ int printk_plugin(
vprintk( format, ap );
return 0;
}
+
+void rtems_print_printer_printk(
+ rtems_printer *printer
+)
+{
+ printer->context = NULL;
+ printer->printer = printk_plugin;
+}