diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-09 16:01:50 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-09 16:01:50 +0000 |
commit | 5b08e20b5e2dfb60f93ada34f370db03112dc5cc (patch) | |
tree | 284b279d63ea2cbc5ef504bccebcdab948b4c8ad /c/src/tests/psxtests/psx06 | |
parent | new test to test scheduling policy and paremeter paths in pthread_create. (diff) | |
download | rtems-5b08e20b5e2dfb60f93ada34f370db03112dc5cc.tar.bz2 |
changed printf's which could be puts's to puts
Diffstat (limited to 'c/src/tests/psxtests/psx06')
-rw-r--r-- | c/src/tests/psxtests/psx06/init.c | 6 | ||||
-rw-r--r-- | c/src/tests/psxtests/psx06/task.c | 3 | ||||
-rw-r--r-- | c/src/tests/psxtests/psx06/task2.c | 3 |
3 files changed, 6 insertions, 6 deletions
diff --git a/c/src/tests/psxtests/psx06/init.c b/c/src/tests/psxtests/psx06/init.c index 84b0caecde..c26d51e814 100644 --- a/c/src/tests/psxtests/psx06/init.c +++ b/c/src/tests/psxtests/psx06/init.c @@ -61,7 +61,7 @@ void *POSIX_Init( empty_line(); Destructor_invoked = 0; - printf( "Init: Creating a key\n" ); + puts( "Init: Creating a key" ); status = pthread_key_create( &Key_id, Key_destructor ); if ( status ) printf( "status = %d\n", status ); @@ -69,6 +69,8 @@ void *POSIX_Init( printf( "Destructor invoked %d times\n", Destructor_invoked ); + + printf( "Init: Setting the key to %d\n", 0 ); status = pthread_setspecific( Key_id, &Data_array[ 0 ] ); if ( status ) @@ -90,7 +92,7 @@ void *POSIX_Init( /* delete the key */ - printf( "Init: Deleting a key\n" ); + puts( "Init: Deleting a key" ); status = pthread_key_delete( Key_id ); if ( status ) printf( "status = %d\n", status ); diff --git a/c/src/tests/psxtests/psx06/task.c b/c/src/tests/psxtests/psx06/task.c index f8fcb1e7e2..a4ebc285f4 100644 --- a/c/src/tests/psxtests/psx06/task.c +++ b/c/src/tests/psxtests/psx06/task.c @@ -42,8 +42,7 @@ void *Task_1( printf( "status = %d\n", status ); assert( !status ); - printf( "Task_1: exitting\n" ); - + puts( "Task_1: exitting" ); pthread_exit( NULL ); /* switch to task 2 */ diff --git a/c/src/tests/psxtests/psx06/task2.c b/c/src/tests/psxtests/psx06/task2.c index 8446edfeaa..90569f993c 100644 --- a/c/src/tests/psxtests/psx06/task2.c +++ b/c/src/tests/psxtests/psx06/task2.c @@ -43,8 +43,7 @@ void *Task_2( printf( "status = %d\n", status ); assert( !status ); - printf( "Task2: exitting\n" ); - + puts( "Task2: exitting" ); pthread_exit( NULL ); /* switch to init task */ |