summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spprintk
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-05-23 15:29:49 +1000
committerChris Johns <chrisj@rtems.org>2016-05-25 15:47:34 +1000
commitaddf1aa8689d64f7aaf0b97185c29265aa713730 (patch)
treefad7b2c6581797197d1d4a4ca5e92fafe7fbd253 /testsuites/sptests/spprintk
parenttestsuite: Fix printk formating warning. (diff)
downloadrtems-addf1aa8689d64f7aaf0b97185c29265aa713730.tar.bz2
testsuite: Fix printk format warnings.
Diffstat (limited to 'testsuites/sptests/spprintk')
-rw-r--r--testsuites/sptests/spprintk/init.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuites/sptests/spprintk/init.c b/testsuites/sptests/spprintk/init.c
index 8086a1ae10..4b45450193 100644
--- a/testsuites/sptests/spprintk/init.c
+++ b/testsuites/sptests/spprintk/init.c
@@ -13,12 +13,6 @@
#include "config.h"
#endif
-#define TESTS_USE_PRINTK
-#include <tmacros.h>
-#include <rtems/print.h>
-
-const char rtems_test_name[] = "SPPRINTK";
-
/*
* Undefined the RTEMS_PRINTF_ATTRIBUTE and make it nothing. The test code
* contained in the file is suppose to be wrong.
@@ -26,6 +20,12 @@ const char rtems_test_name[] = "SPPRINTK";
#undef RTEMS_PRINTF_ATTRIBUTE
#define RTEMS_PRINTF_ATTRIBUTE(_a, _b)
+#define TESTS_USE_PRINTK
+#include <tmacros.h>
+#include <rtems/print.h>
+
+const char rtems_test_name[] = "SPPRINTK";
+
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
int test_getchar(void);