summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-02 16:26:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-02 16:26:39 +0000
commit51f5d64cf4b03f9ca9167d7c8c34ffdcc4182c31 (patch)
tree911d327ca326b420e87ea5a4b0a963b606ade6be /testsuites/psxtests
parentinitialized variables or removed unused variables to remove warnings (diff)
downloadrtems-51f5d64cf4b03f9ca9167d7c8c34ffdcc4182c31.tar.bz2
corrected printf format to avoid warning
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psx05/init.c2
-rw-r--r--testsuites/psxtests/psx06/init.c2
-rw-r--r--testsuites/psxtests/psx06/task.c2
-rw-r--r--testsuites/psxtests/psx06/task2.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c
index ec79d6db37..bade436f6f 100644
--- a/testsuites/psxtests/psx05/init.c
+++ b/testsuites/psxtests/psx05/init.c
@@ -14,7 +14,7 @@
#include "system.h"
#include <errno.h>
-#define MUTEX_BAD_ID -2
+#define MUTEX_BAD_ID 0xfffffffe
void Print_mutexattr(
char *msg,
diff --git a/testsuites/psxtests/psx06/init.c b/testsuites/psxtests/psx06/init.c
index f35bcbb926..bc66cf3ef2 100644
--- a/testsuites/psxtests/psx06/init.c
+++ b/testsuites/psxtests/psx06/init.c
@@ -94,7 +94,7 @@ void *POSIX_Init(
/* switch to task 1 */
key_data = pthread_getspecific( Key_id );
- printf( "Init: Got the key value of %d\n",
+ printf( "Init: Got the key value of %ld\n",
(rtems_unsigned32 *)key_data - Data_array );
remaining = sleep( 3 );
diff --git a/testsuites/psxtests/psx06/task.c b/testsuites/psxtests/psx06/task.c
index a4ebc285f4..98e34117b5 100644
--- a/testsuites/psxtests/psx06/task.c
+++ b/testsuites/psxtests/psx06/task.c
@@ -36,7 +36,7 @@ void *Task_1(
assert( !status );
key_data = pthread_getspecific( Key_id );
- printf( "Task_1: Got the key value of %d\n",
+ printf( "Task_1: Got the key value of %ld\n",
(rtems_unsigned32 *)key_data - Data_array );
if ( status )
printf( "status = %d\n", status );
diff --git a/testsuites/psxtests/psx06/task2.c b/testsuites/psxtests/psx06/task2.c
index 90569f993c..9332b2b3d4 100644
--- a/testsuites/psxtests/psx06/task2.c
+++ b/testsuites/psxtests/psx06/task2.c
@@ -37,7 +37,7 @@ void *Task_2(
assert( !status );
key_data = pthread_getspecific( Key_id );
- printf( "Task_2: Got the key value of %d\n",
+ printf( "Task_2: Got the key value of %ld\n",
(rtems_unsigned32 *)key_data - Data_array );
if ( status )
printf( "status = %d\n", status );