RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
print.h
Go to the documentation of this file.
1
9/*
10 * Copyright (c) 2016 Chris Johns <chrisj@rtems.org>
11 * All rights reserved.
12 *
13 * The license and distribution terms for this file may be
14 * found in the file LICENSE in this distribution or at
15 * http://www.rtems.org/license/LICENSE.
16 */
17
18#ifndef _RTEMS_PRINT_H
19#define _RTEMS_PRINT_H
20
22
23#include <stdarg.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29typedef struct rtems_printer rtems_printer;
30
50extern int rtems_printf(const rtems_printer *printer,
51 const char *format,
52 ...) RTEMS_PRINTFLIKE(2, 3);
53
64extern int rtems_vprintf(const rtems_printer *printer,
65 const char *format,
66 va_list ap);
67
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* _RTEMS_PRINT_H */
Basic Definitions.
#define RTEMS_PRINTFLIKE(_format_pos, _ap_pos)
Tells the compiler that this function expects printf()-like arguments.
Definition: basedefs.h:249
int rtems_printf(const rtems_printer *printer, const char *format,...) RTEMS_PRINTFLIKE(2
Print to the kernel plugin handler. This has to be a macro because there is no vprint version of the ...
int int rtems_vprintf(const rtems_printer *printer, const char *format, va_list ap)
Print to the kernel plugin handler. This has to be a macro because there is no vprint version of the ...
Definition: print_printf.c:23
Definition: mknod-pack_dev.c:254
Definition: printer.h:55