summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/print_fprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/print_fprintf.c')
-rw-r--r--cpukit/libcsupport/src/print_fprintf.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/print_fprintf.c b/cpukit/libcsupport/src/print_fprintf.c
new file mode 100644
index 0000000000..5e46d1c959
--- /dev/null
+++ b/cpukit/libcsupport/src/print_fprintf.c
@@ -0,0 +1,29 @@
+/**
+ * @file
+ *
+ * @brief RTEMS Print Support
+ * @ingroup libcsupport
+ */
+
+/*
+ * Copyright (c) 2016 Chris Johns <chrisj@rtems.org>
+ * All rights reserved.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+ #include "config.h"
+#endif
+
+#include <rtems/print.h>
+
+#include <stdio.h>
+
+void rtems_print_printer_fprintf(rtems_printer *printer, FILE *file)
+{
+ printer->context = file;
+ printer->printer = (rtems_print_plugin_t) fprintf;
+}