From addf1aa8689d64f7aaf0b97185c29265aa713730 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 23 May 2016 15:29:49 +1000 Subject: testsuite: Fix printk format warnings. --- testsuites/sptests/spfatal_support/init.c | 2 +- testsuites/sptests/spprintk/init.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'testsuites/sptests') 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 -#include - -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 +#include + +const char rtems_test_name[] = "SPPRINTK"; + /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); int test_getchar(void); -- cgit v1.2.3