[rtems commit] psxtmtests: Fix format warnings

Sebastian Huber sebh at rtems.org
Tue Jan 29 08:22:18 UTC 2019


Module:    rtems
Branch:    master
Commit:    4f3a2532a39b55e13f73bc3b1e2508a3fda1d6f1
Changeset: http://git.rtems.org/rtems/commit/?id=4f3a2532a39b55e13f73bc3b1e2508a3fda1d6f1

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jan 28 14:16:39 2019 +0100

psxtmtests: Fix format warnings

Update #3384.

---

 testsuites/psxtmtests/psxtmbarrierattr01/init.c | 18 +++++-----
 testsuites/psxtmtests/psxtmcleanup01/init.c     |  2 +-
 testsuites/psxtmtests/psxtmmutexattr01/init.c   | 48 ++++++++++++-------------
 testsuites/psxtmtests/psxtmonce01/init.c        |  4 +--
 4 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/testsuites/psxtmtests/psxtmbarrierattr01/init.c b/testsuites/psxtmtests/psxtmbarrierattr01/init.c
index 7410c7c..f1fa632 100644
--- a/testsuites/psxtmtests/psxtmbarrierattr01/init.c
+++ b/testsuites/psxtmtests/psxtmbarrierattr01/init.c
@@ -44,8 +44,8 @@ static pthread_barrierattr_t attr;
 
 static void benchmark_create_barrierattr(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_barrierattr_init( &attr );
@@ -64,8 +64,8 @@ static void benchmark_create_barrierattr(void)
 
 static void benchmark_barrierattr_setpshared(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_barrierattr_setpshared( &attr, PTHREAD_PROCESS_SHARED );
@@ -84,9 +84,9 @@ static void benchmark_barrierattr_setpshared(void)
 
 static void benchmark_barrierattr_getpshared(void)
 {
-  long end_time;
-  int  status;
-  int pshared;
+  benchmark_timer_t end_time;
+  int               status;
+  int               pshared;
 
   benchmark_timer_initialize();
   status = pthread_barrierattr_getpshared( &attr, &pshared );
@@ -106,8 +106,8 @@ static void benchmark_barrierattr_getpshared(void)
 
 static void benchmark_destroy_barrierattr(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_barrierattr_destroy( &attr );
diff --git a/testsuites/psxtmtests/psxtmcleanup01/init.c b/testsuites/psxtmtests/psxtmcleanup01/init.c
index 2e704be..0bca307 100644
--- a/testsuites/psxtmtests/psxtmcleanup01/init.c
+++ b/testsuites/psxtmtests/psxtmcleanup01/init.c
@@ -48,7 +48,7 @@ static void routine(void *arg)
 
 static void benchmark_pthread_cleanup_push_pull(void)
 {
-  long end_time;
+  benchmark_timer_t end_time;
   int execute = 1;
   status = 0;
 
diff --git a/testsuites/psxtmtests/psxtmmutexattr01/init.c b/testsuites/psxtmtests/psxtmmutexattr01/init.c
index 5b44c20..dc7ea80 100644
--- a/testsuites/psxtmtests/psxtmmutexattr01/init.c
+++ b/testsuites/psxtmtests/psxtmmutexattr01/init.c
@@ -45,8 +45,8 @@ static pthread_mutexattr_t attr;
 
 static void benchmark_create_pthread_mutexattr(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_init( &attr );
@@ -65,8 +65,8 @@ static void benchmark_create_pthread_mutexattr(void)
 
 static void benchmark_pthread_mutexattr_setprioceiling(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_setprioceiling( &attr, SCHED_FIFO);
@@ -85,9 +85,9 @@ static void benchmark_pthread_mutexattr_setprioceiling(void)
 
 static void benchmark_pthread_mutexattr_getprioceiling(void)
 {
-  long end_time;
-  int  status;
-  int prioceiling;
+  benchmark_timer_t end_time;
+  int               status;
+  int               prioceiling;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_getprioceiling( &attr, &prioceiling);
@@ -107,8 +107,8 @@ static void benchmark_pthread_mutexattr_getprioceiling(void)
 
 static void benchmark_pthread_mutexattr_setprotocol(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_setprotocol( &attr, PTHREAD_PRIO_INHERIT );
@@ -127,9 +127,9 @@ static void benchmark_pthread_mutexattr_setprotocol(void)
 
 static void benchmark_pthread_mutexattr_getprotocol(void)
 {
-  long end_time;
-  int  status;
-  int protocol;
+  benchmark_timer_t end_time;
+  int               status;
+  int               protocol;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_getprotocol( &attr, &protocol );
@@ -149,8 +149,8 @@ static void benchmark_pthread_mutexattr_getprotocol(void)
 
 static void benchmark_pthread_mutexattr_setpshared(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_setpshared( &attr, PTHREAD_PROCESS_PRIVATE );
@@ -169,9 +169,9 @@ static void benchmark_pthread_mutexattr_setpshared(void)
 
 static void benchmark_pthread_mutexattr_getpshared(void)
 {
-  long end_time;
-  int  status;
-  int pshared;
+  benchmark_timer_t end_time;
+  int               status;
+  int               pshared;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_getpshared( &attr, &pshared );
@@ -191,8 +191,8 @@ static void benchmark_pthread_mutexattr_getpshared(void)
 
 static void benchmark_pthread_mutexattr_settype(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_DEFAULT );
@@ -211,9 +211,9 @@ static void benchmark_pthread_mutexattr_settype(void)
 
 static void benchmark_pthread_mutexattr_gettype(void)
 {
-  long end_time;
-  int  status;
-  int type;
+  benchmark_timer_t end_time;
+  int               status;
+  int               type;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_gettype( &attr, &type );
@@ -233,8 +233,8 @@ static void benchmark_pthread_mutexattr_gettype(void)
 
 static void benchmark_destroy_pthread_mutexattr(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_mutexattr_destroy( &attr );
diff --git a/testsuites/psxtmtests/psxtmonce01/init.c b/testsuites/psxtmtests/psxtmonce01/init.c
index e68ccaa..2d6824e 100644
--- a/testsuites/psxtmtests/psxtmonce01/init.c
+++ b/testsuites/psxtmtests/psxtmonce01/init.c
@@ -45,8 +45,8 @@ static void initRoutine(void)
 
 static void benchmark_first_time(void)
 {
-  long end_time;
-  int  status;
+  benchmark_timer_t end_time;
+  int               status;
 
   benchmark_timer_initialize();
   status = pthread_once( &once_control, initRoutine );



More information about the vc mailing list