[PATCH 08/15] testsuites/psxtests/psxfatal_support/init.c: Fix printf() format warnings.

Joel Sherrill joel at rtems.org
Mon Oct 3 22:58:05 UTC 2016


---
 testsuites/psxtests/psxfatal_support/init.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c
index 0f995dc..cdf479e 100644
--- a/testsuites/psxtests/psxfatal_support/init.c
+++ b/testsuites/psxtests/psxfatal_support/init.c
@@ -46,12 +46,13 @@ 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 (%d)", error);
+      printk("Unknown Internal Rtems Error (%" PRIu32 ")", error);
     else
       printk( "%s", rtems_status_text( error ) );
   }
   else if (source == INTERNAL_ERROR_POSIX_API ) {
-      printk( "SOURCE=%d ERROR=%d %s", source, error, strerror( error ) );
+      printk( "SOURCE=%" PRIu32 " ERROR=%" PRIu32 " %s",
+              source, error, strerror( error ) );
   }
 }
 
-- 
1.8.3.1




More information about the devel mailing list