summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-28 14:16:39 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-28 14:17:39 +0100
commit4f3a2532a39b55e13f73bc3b1e2508a3fda1d6f1 (patch)
tree5e6d3af70cad22d0c6f229629fa10617f48f8d4e /testsuites/psxtmtests
parentbsps/powerpc: Fix warnings (diff)
downloadrtems-4f3a2532a39b55e13f73bc3b1e2508a3fda1d6f1.tar.bz2
psxtmtests: Fix format warnings
Update #3384.
Diffstat (limited to 'testsuites/psxtmtests')
-rw-r--r--testsuites/psxtmtests/psxtmbarrierattr01/init.c18
-rw-r--r--testsuites/psxtmtests/psxtmcleanup01/init.c2
-rw-r--r--testsuites/psxtmtests/psxtmmutexattr01/init.c48
-rw-r--r--testsuites/psxtmtests/psxtmonce01/init.c4
4 files changed, 36 insertions, 36 deletions
diff --git a/testsuites/psxtmtests/psxtmbarrierattr01/init.c b/testsuites/psxtmtests/psxtmbarrierattr01/init.c
index 7410c7cbb7..f1fa632f70 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 2e704be551..0bca307a62 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 5b44c208bc..dc7ea80b63 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 e68ccaa03b..2d6824e5c1 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 );