5
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Plugin Printk |
---|
5 | * @ingroup libcsupport |
---|
6 | */ |
---|
7 | |
---|
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 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems/print.h> |
---|
22 | |
---|
23 | static int printk_plugin( |
---|
24 | void *ignored, |
---|
25 | const char *format, |
---|
26 | va_list ap |
---|
27 | ) |
---|
28 | { |
---|
29 | (void) ignored; |
---|
30 | vprintk( format, ap ); |
---|
31 | return 0; |
---|
32 | } |
---|
33 | |
---|
34 | void rtems_print_printer_printk( |
---|
35 | rtems_printer *printer |
---|
36 | ) |
---|
37 | { |
---|
38 | printer->context = NULL; |
---|
39 | printer->printer = printk_plugin; |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.