blob: 3ff80f7b2ec48ddd5fa716c807d49bdeee9f87dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/**
* @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>
static int rtems_fprintf_plugin(void *context, const char *fmt, va_list ap)
{
return vfprintf(context, fmt, ap);
}
void rtems_print_printer_fprintf(rtems_printer *printer, FILE *file)
{
printer->context = file;
printer->printer = rtems_fprintf_plugin;
}
|