[rtems commit] Make rtems_fprintf_plugin() static
Sebastian Huber
sebh at rtems.org
Wed Jun 22 05:46:10 UTC 2016
Module: rtems
Branch: master
Commit: 5c370a5df402f9667b59c03e34abac1c9f91e864
Changeset: http://git.rtems.org/rtems/commit/?id=5c370a5df402f9667b59c03e34abac1c9f91e864
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 21 13:05:50 2016 +0200
Make rtems_fprintf_plugin() static
---
cpukit/include/rtems/bspIo.h | 13 -------------
cpukit/libcsupport/src/print_fprintf.c | 2 +-
2 files changed, 1 insertion(+), 14 deletions(-)
diff --git a/cpukit/include/rtems/bspIo.h b/cpukit/include/rtems/bspIo.h
index fad4e9d..112dde6 100644
--- a/cpukit/include/rtems/bspIo.h
+++ b/cpukit/include/rtems/bspIo.h
@@ -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 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
diff --git a/cpukit/libcsupport/src/print_fprintf.c b/cpukit/libcsupport/src/print_fprintf.c
index 757293e..3ff80f7 100644
--- a/cpukit/libcsupport/src/print_fprintf.c
+++ b/cpukit/libcsupport/src/print_fprintf.c
@@ -22,7 +22,7 @@
#include <stdio.h>
-int rtems_fprintf_plugin(void *context, const char *fmt, va_list ap)
+static int rtems_fprintf_plugin(void *context, const char *fmt, va_list ap)
{
return vfprintf(context, fmt, ap);
}
More information about the vc
mailing list