source: rtems/cpukit/libcsupport/src/printk_plugin.c @ 97fd93c

5
Last change on this file since 97fd93c was 97fd93c, checked in by Sebastian Huber <sebastian.huber@…>, on 06/21/16 at 11:03:56

Make printk_plugin() static

  • Property mode set to 100644
File size: 663 bytes
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
23static 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
34void 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.