source: rtems/cpukit/libcsupport/src/printf_plugin.c @ 5c370a5d

5
Last change on this file since 5c370a5d was 1ce8fc3, checked in by Sebastian Huber <sebastian.huber@…>, on 06/21/16 at 11:05:18

Make rtems_printf_plugin() static

  • Property mode set to 100644
File size: 781 bytes
Line 
1/**
2 *  @file
3 *
4 *  @brief RTEMS Plugin Printf
5 *  @ingroup libcsupport
6 */
7
8/*
9 * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
10 *
11 *  embedded brains GmbH
12 *  Obere Lagerstr. 30
13 *  82178 Puchheim
14 *  Germany
15 *  <rtems@embedded-brains.de>
16 *
17 * The license and distribution terms for this file may be
18 * found in the file LICENSE in this distribution or at
19 * http://www.rtems.org/license/LICENSE.
20 */
21
22#ifdef HAVE_CONFIG_H
23  #include "config.h"
24#endif
25
26#include <rtems/print.h>
27
28#include <stdio.h>
29
30static int rtems_printf_plugin(void *context, const char *format, va_list ap)
31{
32  (void) context;
33  return vprintf(format, ap);
34}
35
36void rtems_print_printer_printf(rtems_printer *printer)
37{
38  printer->context = NULL;
39  printer->printer = rtems_printf_plugin;
40}
Note: See TracBrowser for help on using the repository browser.