source: rtems/cpukit/libcsupport/src/printf_plugin.c @ 80cf60e

5
Last change on this file since 80cf60e was 80cf60e, checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/20 at 07:48:32

Canonicalize config.h include

Use the following variant which was already used by most source files:

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

  • Property mode set to 100644
File size: 761 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/printer.h>
27
28static int rtems_printf_plugin(void *context, const char *format, va_list ap)
29{
30  (void) context;
31  return vprintf(format, ap);
32}
33
34void rtems_print_printer_printf(rtems_printer *printer)
35{
36  printer->context = NULL;
37  printer->printer = rtems_printf_plugin;
38}
Note: See TracBrowser for help on using the repository browser.