Changeset 1ce8fc3 in rtems
- Timestamp:
- 06/21/16 11:05:18 (7 years ago)
- Branches:
- 5, 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)
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/include/rtems/bspIo.h
r97fd93c r1ce8fc3 143 143 144 144 /** 145 * @brief Reporting Methods printf() Plugin146 *147 * This is a standard plug-in to support using printf() for output148 * instead of printk().149 *150 * @param[in] context Unused.151 * @param[in] fmt is a printf()-style format string152 *153 * @return The number of characters printed.154 */155 extern int rtems_printf_plugin(void *context, const char *fmt, va_list ap);156 157 /**158 145 * @brief Reporting Methods fprintf() Plugin 159 146 * -
cpukit/libcsupport/src/printf_plugin.c
r97fd93c r1ce8fc3 28 28 #include <stdio.h> 29 29 30 static int rtems_printf_plugin(void *context, const char *format, va_list ap) 31 { 32 (void) context; 33 return vprintf(format, ap); 34 } 35 30 36 void rtems_print_printer_printf(rtems_printer *printer) 31 37 { … … 33 39 printer->printer = rtems_printf_plugin; 34 40 } 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.