Changeset 506bfc8 in rtems
- Timestamp:
- 06/21/16 11:30:15 (7 years ago)
- Branches:
- 5, master
- Children:
- a33bfb6
- Parents:
- ede1a41
- git-author:
- Sebastian Huber <sebastian.huber@…> (06/21/16 11:30:15)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (06/22/16 05:29:26)
- Files:
-
- 1 added
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/shared/src/irq-info.c
rede1a41 r506bfc8 22 22 #include <inttypes.h> 23 23 24 #include <rtems/print .h>24 #include <rtems/printer.h> 25 25 26 26 #include <bsp/irq-generic.h> -
c/src/lib/libbsp/shared/src/irq-shell.c
rede1a41 r506bfc8 22 22 #include <stdio.h> 23 23 24 #include <rtems/printer.h> 24 25 #include <rtems/shell.h> 25 26 -
cpukit/Makefile.am
rede1a41 r506bfc8 99 99 include_rtems_HEADERS += include/rtems/bspIo.h 100 100 include_rtems_HEADERS += include/rtems/print.h 101 include_rtems_HEADERS += include/rtems/printer.h 101 102 include_rtems_HEADERS += include/rtems/userenv.h 102 103 include_rtems_HEADERS += include/rtems/fs.h -
cpukit/include/rtems/print.h
rede1a41 r506bfc8 22 22 23 23 #include <stdarg.h> 24 #include <stdio.h>25 24 26 25 #ifdef __cplusplus … … 28 27 #endif 29 28 29 typedef struct rtems_printer rtems_printer; 30 30 31 /** 31 * @defgroup RTEMS Print Support32 * @defgroup RTEMSPrintSupport RTEMS Print Support 32 33 * 33 34 * This module contains all methods and support related to providing the user 34 35 * with an interface to the kernel level print support. 35 36 */ 36 37 /**38 * Type definition for function which can be plugged in to certain reporting39 * routines to redirect the output.40 *41 * Use the RTEMS Print interface to call these functions. Do not directly use42 * them.43 *44 * If the user provides their own printer, then they may redirect those reports45 * as they see fit.46 */47 typedef int (*rtems_print_printer)(void *, const char *format, va_list ap);48 49 /**50 * Type definition for the printer structure used to access the kernel print51 * support.52 */53 typedef struct rtems_printer {54 void *context;55 rtems_print_printer printer;56 } rtems_printer;57 58 /**59 * @brief check if the printer is valid.60 *61 * @param[in] printer Pointer to the printer structure.62 *63 * @return true The printer is valid else false is returned.64 */65 static inline bool rtems_print_printer_valid(const rtems_printer *printer)66 {67 return printer != NULL && printer->printer != NULL;68 }69 37 70 38 /** … … 96 64 va_list ap); 97 65 98 /** 99 * @brief Intiialise the rtems_printer struct to empty. 100 * 101 * An empty printer prints nothing. You can use this to implement an enable and 102 * disable type print implementation. 103 * 104 * @param[in] printer Pointer to the printer structure. 105 */ 106 static inline void rtems_print_printer_empty(rtems_printer *printer) 107 { 108 printer->context = NULL; 109 printer->printer = NULL; 110 } 111 112 /** 113 * @brief Intiialise the rtems_printer struct to printk 114 * 115 * The printer will output to the kernel printk support. 116 * 117 * @param[in] printer Pointer to the printer structure. 118 */ 119 void rtems_print_printer_printk(rtems_printer *printer); 120 121 /** 122 * @brief Intiialise the rtems_printer struct to printf 123 * 124 * The printer will output to the libc printf support. 125 * 126 * @param[in] printer Pointer to the printer structure. 127 */ 128 extern void rtems_print_printer_printf(rtems_printer *printer); 129 130 /** 131 * @brief Intiialise the rtems_printer struct to a fprintf device. 132 * 133 * The printer will output to the libc fprintf file provided. 134 * 135 * @param[in] printer Pointer to the printer structure. 136 */ 137 extern void rtems_print_printer_fprintf(rtems_printer *printer, FILE *file); 138 139 /**@}*/ 66 /** @} */ 140 67 141 68 #ifdef __cplusplus … … 143 70 #endif 144 71 145 #endif 72 #endif /* _RTEMS_PRINT_H */ -
cpukit/libcsupport/src/print_fprintf.c
rede1a41 r506bfc8 19 19 #endif 20 20 21 #include <rtems/print.h> 22 23 #include <stdio.h> 21 #include <rtems/printer.h> 24 22 25 23 static int rtems_fprintf_plugin(void *context, const char *fmt, va_list ap) -
cpukit/libcsupport/src/print_printf.c
rede1a41 r506bfc8 19 19 #endif 20 20 21 #include <rtems/print.h> 22 23 #include <stdio.h> 21 #include <rtems/printer.h> 24 22 25 23 int rtems_vprintf( -
cpukit/libcsupport/src/printf_plugin.c
rede1a41 r506bfc8 24 24 #endif 25 25 26 #include <rtems/print.h> 27 28 #include <stdio.h> 26 #include <rtems/printer.h> 29 27 30 28 static int rtems_printf_plugin(void *context, const char *format, va_list ap) -
cpukit/libcsupport/src/printk_plugin.c
rede1a41 r506bfc8 19 19 #endif 20 20 21 #include <rtems/print .h>21 #include <rtems/printer.h> 22 22 #include <rtems/bspIo.h> 23 23 -
cpukit/libdl/rap.c
rede1a41 r506bfc8 20 20 #endif 21 21 22 #include <stdarg.h> 22 23 #include <stdlib.h> 23 24 #include <stdio.h> -
cpukit/libmisc/cpuuse/cpuusagereport.c
rede1a41 r506bfc8 26 26 27 27 #include <rtems/cpuuse.h> 28 #include <rtems/printer.h> 28 29 #include <rtems/score/objectimpl.h> 29 30 #include <rtems/score/threadimpl.h> -
cpukit/libmisc/cpuuse/cpuusagetop.c
rede1a41 r506bfc8 33 33 34 34 #include <rtems/cpuuse.h> 35 #include <rtems/printer.h> 35 36 #include <rtems/malloc.h> 36 37 #include <rtems/score/objectimpl.h> -
cpukit/libmisc/fb/mw_print.c
rede1a41 r506bfc8 22 22 23 23 #include <rtems/mw_uid.h> 24 #include <rtems/printer.h> 24 25 25 26 static const char *uid_buttons( -
cpukit/libmisc/shell/main_blkstats.c
rede1a41 r506bfc8 18 18 19 19 #include <rtems/blkdev.h> 20 #include <rtems/printer.h> 20 21 #include <rtems/shellconfig.h> 21 22 -
cpukit/libmisc/shell/main_cpuinfo.c
rede1a41 r506bfc8 20 20 #include <rtems/shellconfig.h> 21 21 #include <rtems/cpuuse.h> 22 #include <rtems/printer.h> 22 23 23 24 static int rtems_shell_main_cpuinfo(int argc, char **argv) -
cpukit/libmisc/shell/main_cpuuse.c
rede1a41 r506bfc8 19 19 #include <rtems.h> 20 20 #include <rtems/cpuuse.h> 21 #include <rtems/printer.h> 21 22 #include <rtems/shell.h> 22 23 #include "internal.h" -
cpukit/libmisc/shell/main_perioduse.c
rede1a41 r506bfc8 18 18 19 19 #include <rtems.h> 20 #include <rtems/printer.h> 20 21 #include <rtems/shell.h> 21 22 #include "internal.h" -
cpukit/libmisc/shell/main_profreport.c
rede1a41 r506bfc8 20 20 21 21 #include <rtems/profiling.h> 22 #include <rtems/printer.h> 22 23 #include <rtems/shell.h> 23 24 #include <rtems/shellconfig.h> -
cpukit/libmisc/shell/main_stackuse.c
rede1a41 r506bfc8 17 17 18 18 #include <rtems.h> 19 #include <rtems/printer.h> 19 20 #include <rtems/stackchk.h> 20 21 #include <rtems/shell.h> -
cpukit/libmisc/shell/main_top.c
rede1a41 r506bfc8 19 19 #include <rtems.h> 20 20 #include <rtems/cpuuse.h> 21 #include <rtems/printer.h> 21 22 #include <rtems/shell.h> 22 23 #include "internal.h" -
cpukit/libmisc/stackchk/check.c
rede1a41 r506bfc8 41 41 42 42 #include <rtems/bspIo.h> 43 #include <rtems/printer.h> 43 44 #include <rtems/stackchk.h> 44 45 #include <rtems/score/percpu.h> -
cpukit/libmisc/testsupport/test.h
rede1a41 r506bfc8 17 17 18 18 #include <rtems.h> 19 #include <rtems/print .h>19 #include <rtems/printer.h> 20 20 #include <rtems/score/atomic.h> 21 21 #include <rtems/score/smpbarrier.h> -
cpukit/mghttpd/mongoose.c
rede1a41 r506bfc8 5521 5521 } 5522 5522 #ifdef __rtems__ 5523 #include <rtems/print .h>5523 #include <rtems/printer.h> 5524 5524 5525 5525 static int mg_printer_plugin(void *context, const char *fmt, va_list ap) { -
cpukit/preinstall.am
rede1a41 r506bfc8 229 229 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/print.h 230 230 231 $(PROJECT_INCLUDE)/rtems/printer.h: include/rtems/printer.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) 232 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/printer.h 233 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/printer.h 234 231 235 $(PROJECT_INCLUDE)/rtems/userenv.h: include/rtems/userenv.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) 232 236 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/userenv.h -
cpukit/rtems/src/ratemonreportstatistics.c
rede1a41 r506bfc8 21 21 #include <rtems/rtems/ratemonimpl.h> 22 22 #include <rtems/rtems/object.h> 23 #include <rtems/print .h>23 #include <rtems/printer.h> 24 24 25 25 #include <inttypes.h> -
cpukit/score/src/cpusetprintsupport.c
rede1a41 r506bfc8 24 24 #include <ctype.h> 25 25 #include <inttypes.h> 26 #include <rtems/print .h>26 #include <rtems/printer.h> 27 27 #include <rtems/score/cpusetimpl.h> 28 28 … … 50 50 rtems_printf(printer ,"%s: ", description); 51 51 for(i=0; i<_NCPUWORDS; i++) 52 rtems_printf(printer ,"% x", cpuset->__bits[i]);52 rtems_printf(printer ,"%" PRIx32 "", cpuset->__bits[i]); 53 53 rtems_printf(printer ,"\n"); 54 54 } -
testsuites/samples/hello/init.c
rede1a41 r506bfc8 12 12 #endif 13 13 14 #include <rtems/printer.h> 14 15 #include <rtems/test.h> 15 16
Note: See TracChangeset
for help on using the changeset viewer.