Changeset 1ce8fc3 in rtems


Ignore:
Timestamp:
Jun 21, 2016, 11:05:18 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5c370a5d
Parents:
97fd93c
git-author:
Sebastian Huber <sebastian.huber@…> (06/21/16 11:05:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/22/16 05:29:26)
Message:

Make rtems_printf_plugin() static

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/bspIo.h

    r97fd93c r1ce8fc3  
    143143
    144144/**
    145  * @brief Reporting Methods printf() Plugin
    146  *
    147  * This is a standard plug-in to support using printf() for output
    148  * instead of printk().
    149  *
    150  * @param[in] context Unused.
    151  * @param[in] fmt is a printf()-style format string
    152  *
    153  * @return The number of characters printed.
    154  */
    155 extern int rtems_printf_plugin(void *context, const char *fmt, va_list ap);
    156 
    157 /**
    158145 * @brief Reporting Methods fprintf() Plugin
    159146 *
  • cpukit/libcsupport/src/printf_plugin.c

    r97fd93c r1ce8fc3  
    2828#include <stdio.h>
    2929
     30static int rtems_printf_plugin(void *context, const char *format, va_list ap)
     31{
     32  (void) context;
     33  return vprintf(format, ap);
     34}
     35
    3036void rtems_print_printer_printf(rtems_printer *printer)
    3137{
     
    3339  printer->printer = rtems_printf_plugin;
    3440}
    35 
    36 int rtems_printf_plugin(void *context, const char *format, va_list ap)
    37 {
    38   (void) context;
    39   return vprintf(format, ap);
    40 }
Note: See TracChangeset for help on using the changeset viewer.