summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/bspIo.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-21 13:28:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-22 07:29:26 +0200
commite8020d1914b58c05a1a796b486e5a8fb23abe188 (patch)
treee3f99db14fc1d4a190f6608ecab83607185d25f2 /cpukit/include/rtems/bspIo.h
parentMake rtems_fprintf_plugin() static (diff)
downloadrtems-e8020d1914b58c05a1a796b486e5a8fb23abe188.tar.bz2
Rename and move RTEMS_PRINTF_ATTRIBUTE()
Rename RTEMS_PRINTF_ATTRIBUTE() into RTEMS_PRINTFLIKE() (similar to <sys/cdefs.h> __printflike()) and move it to <rtems/score/basedefs.h>.
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/bspIo.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/cpukit/include/rtems/bspIo.h b/cpukit/include/rtems/bspIo.h
index 112dde6126..4b5b2a2bf7 100644
--- a/cpukit/include/rtems/bspIo.h
+++ b/cpukit/include/rtems/bspIo.h
@@ -18,6 +18,10 @@
#ifndef _RTEMS_BSPIO_H
#define _RTEMS_BSPIO_H
+#include <rtems/score/basedefs.h>
+
+#include <stdarg.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -37,15 +41,6 @@ extern "C" {
*/
/**
- * Print format function attribute for warning checks. Can be defined if
- * checking needs to be disabled.
- */
-#ifndef RTEMS_PRINTF_ATTRIBUTE
-#define RTEMS_PRINTF_ATTRIBUTE(_format_pos, _ap_pos) \
- __attribute__((format(__printf__, _format_pos, _ap_pos)))
-#endif
-
-/**
* This type defines the prototype for the BSP provided method to
* print a single character. It is assumed to be polled.
*/
@@ -69,8 +64,6 @@ extern BSP_output_char_function_type BSP_output_char;
*/
extern BSP_polling_getchar_function_type BSP_poll_char;
-#include <stdarg.h>
-
/**
* @brief Get Character (kernel I/O)
*
@@ -107,7 +100,7 @@ extern int vprintk(const char *fmt, va_list ap);
*
* @return The number of characters output.
*/
-extern int printk(const char *fmt, ...) RTEMS_PRINTF_ATTRIBUTE(1, 2);
+extern int printk(const char *fmt, ...) RTEMS_PRINTFLIKE(1, 2);
/**
* @brief Kernel Put String