Changeset 97fd93c in rtems
- Timestamp:
- 06/21/16 11:03:56 (7 years ago)
- Branches:
- 5, master
- Children:
- 1ce8fc3
- Parents:
- 91043bf
- git-author:
- Sebastian Huber <sebastian.huber@…> (06/21/16 11:03:56)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (06/22/16 05:29:25)
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/include/rtems/bspIo.h
r91043bf r97fd93c 143 143 144 144 /** 145 * @brief Reporting Methods printk() Plugin146 *147 * @param[in] context Unused.148 * @param[in] fmt is a printf()-style format string149 *150 * @return The number of characters printed.151 */152 extern int printk_plugin(void *context, const char *fmt, va_list ap);153 154 /**155 145 * @brief Reporting Methods printf() Plugin 156 146 * -
cpukit/libcsupport/src/printk_plugin.c
r91043bf r97fd93c 19 19 #endif 20 20 21 #include <stdarg.h>22 21 #include <rtems/print.h> 23 22 24 void rtems_print_printer_printk( 25 rtems_printer *printer 26 ) 27 { 28 printer->context = NULL; 29 printer->printer = printk_plugin; 30 } 31 32 int printk_plugin( 23 static int printk_plugin( 33 24 void *ignored, 34 25 const char *format, … … 40 31 return 0; 41 32 } 33 34 void rtems_print_printer_printk( 35 rtems_printer *printer 36 ) 37 { 38 printer->context = NULL; 39 printer->printer = printk_plugin; 40 }
Note: See TracChangeset
for help on using the changeset viewer.