RTEMS
printk_plugin.c
Go to the documentation of this file.
1 
8 /*
9  * COPYRIGHT (c) 1989-2007.
10  * On-Line Applications Research Corporation (OAR).
11  *
12  * The license and distribution terms for this file may be
13  * found in the file LICENSE in this distribution or at
14  * http://www.rtems.org/license/LICENSE.
15  */
16 
17 #ifdef HAVE_CONFIG_H
18 #include "config.h"
19 #endif
20 
21 #include <rtems/printer.h>
22 #include <rtems/bspIo.h>
23 
24 int rtems_printk_printer(
25  void *ignored,
26  const char *format,
27  va_list ap
28 )
29 {
30  (void) ignored;
31  return vprintk( format, ap );
32 }
33 
35  rtems_printer *printer
36 )
37 {
38  printer->context = NULL;
39  printer->printer = rtems_printk_printer;
40 }
int vprintk(const char *fmt, va_list ap)
Variable Argument printk()
Definition: vprintk.c:29
void rtems_print_printer_printk(rtems_printer *printer)
Initializes the printer to print via printk().
Definition: printk_plugin.c:34
Interface to Kernel Print Methods.
User print interface to the bspIO print plug in.