diff options
author | Chris Johns <chrisj@rtems.org> | 2016-05-23 15:29:49 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-05-25 15:47:34 +1000 |
commit | addf1aa8689d64f7aaf0b97185c29265aa713730 (patch) | |
tree | fad7b2c6581797197d1d4a4ca5e92fafe7fbd253 /testsuites/sptests | |
parent | testsuite: Fix printk formating warning. (diff) | |
download | rtems-addf1aa8689d64f7aaf0b97185c29265aa713730.tar.bz2 |
testsuite: Fix printk format warnings.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r-- | testsuites/sptests/spfatal_support/init.c | 2 | ||||
-rw-r--r-- | testsuites/sptests/spprintk/init.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/testsuites/sptests/spfatal_support/init.c b/testsuites/sptests/spfatal_support/init.c index f048d4b3c1..319dbd2405 100644 --- a/testsuites/sptests/spfatal_support/init.c +++ b/testsuites/sptests/spfatal_support/init.c @@ -43,7 +43,7 @@ void Put_Error( uint32_t source, uint32_t error ) } else if (source == INTERNAL_ERROR_RTEMS_API ){ if (error > RTEMS_NOT_IMPLEMENTED ) - printk("Unknown Internal Rtems Error (0x%08x)", error); + printk("Unknown Internal Rtems Error (0x%08" PRIx32 ")", error); else printk( "%s", rtems_status_text( error ) ); } 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); |