forked from Imagelibrary/rtems
changed printf's which could be puts's to puts
This commit is contained in:
@@ -61,7 +61,7 @@ void *POSIX_Init(
|
|||||||
empty_line();
|
empty_line();
|
||||||
|
|
||||||
Destructor_invoked = 0;
|
Destructor_invoked = 0;
|
||||||
printf( "Init: Creating a key\n" );
|
puts( "Init: Creating a key" );
|
||||||
status = pthread_key_create( &Key_id, Key_destructor );
|
status = pthread_key_create( &Key_id, Key_destructor );
|
||||||
if ( status )
|
if ( status )
|
||||||
printf( "status = %d\n", status );
|
printf( "status = %d\n", status );
|
||||||
@@ -69,6 +69,8 @@ void *POSIX_Init(
|
|||||||
|
|
||||||
printf( "Destructor invoked %d times\n", Destructor_invoked );
|
printf( "Destructor invoked %d times\n", Destructor_invoked );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printf( "Init: Setting the key to %d\n", 0 );
|
printf( "Init: Setting the key to %d\n", 0 );
|
||||||
status = pthread_setspecific( Key_id, &Data_array[ 0 ] );
|
status = pthread_setspecific( Key_id, &Data_array[ 0 ] );
|
||||||
if ( status )
|
if ( status )
|
||||||
@@ -90,7 +92,7 @@ void *POSIX_Init(
|
|||||||
|
|
||||||
/* delete the key */
|
/* delete the key */
|
||||||
|
|
||||||
printf( "Init: Deleting a key\n" );
|
puts( "Init: Deleting a key" );
|
||||||
status = pthread_key_delete( Key_id );
|
status = pthread_key_delete( Key_id );
|
||||||
if ( status )
|
if ( status )
|
||||||
printf( "status = %d\n", status );
|
printf( "status = %d\n", status );
|
||||||
|
|||||||
@@ -42,8 +42,7 @@ void *Task_1(
|
|||||||
printf( "status = %d\n", status );
|
printf( "status = %d\n", status );
|
||||||
assert( !status );
|
assert( !status );
|
||||||
|
|
||||||
printf( "Task_1: exitting\n" );
|
puts( "Task_1: exitting" );
|
||||||
|
|
||||||
pthread_exit( NULL );
|
pthread_exit( NULL );
|
||||||
|
|
||||||
/* switch to task 2 */
|
/* switch to task 2 */
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ void *Task_2(
|
|||||||
printf( "status = %d\n", status );
|
printf( "status = %d\n", status );
|
||||||
assert( !status );
|
assert( !status );
|
||||||
|
|
||||||
printf( "Task2: exitting\n" );
|
puts( "Task2: exitting" );
|
||||||
|
|
||||||
pthread_exit( NULL );
|
pthread_exit( NULL );
|
||||||
|
|
||||||
/* switch to init task */
|
/* switch to init task */
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ void *POSIX_Init(
|
|||||||
empty_line();
|
empty_line();
|
||||||
|
|
||||||
Destructor_invoked = 0;
|
Destructor_invoked = 0;
|
||||||
printf( "Init: Creating a key\n" );
|
puts( "Init: Creating a key" );
|
||||||
status = pthread_key_create( &Key_id, Key_destructor );
|
status = pthread_key_create( &Key_id, Key_destructor );
|
||||||
if ( status )
|
if ( status )
|
||||||
printf( "status = %d\n", status );
|
printf( "status = %d\n", status );
|
||||||
@@ -69,6 +69,8 @@ void *POSIX_Init(
|
|||||||
|
|
||||||
printf( "Destructor invoked %d times\n", Destructor_invoked );
|
printf( "Destructor invoked %d times\n", Destructor_invoked );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printf( "Init: Setting the key to %d\n", 0 );
|
printf( "Init: Setting the key to %d\n", 0 );
|
||||||
status = pthread_setspecific( Key_id, &Data_array[ 0 ] );
|
status = pthread_setspecific( Key_id, &Data_array[ 0 ] );
|
||||||
if ( status )
|
if ( status )
|
||||||
@@ -90,7 +92,7 @@ void *POSIX_Init(
|
|||||||
|
|
||||||
/* delete the key */
|
/* delete the key */
|
||||||
|
|
||||||
printf( "Init: Deleting a key\n" );
|
puts( "Init: Deleting a key" );
|
||||||
status = pthread_key_delete( Key_id );
|
status = pthread_key_delete( Key_id );
|
||||||
if ( status )
|
if ( status )
|
||||||
printf( "status = %d\n", status );
|
printf( "status = %d\n", status );
|
||||||
|
|||||||
@@ -42,8 +42,7 @@ void *Task_1(
|
|||||||
printf( "status = %d\n", status );
|
printf( "status = %d\n", status );
|
||||||
assert( !status );
|
assert( !status );
|
||||||
|
|
||||||
printf( "Task_1: exitting\n" );
|
puts( "Task_1: exitting" );
|
||||||
|
|
||||||
pthread_exit( NULL );
|
pthread_exit( NULL );
|
||||||
|
|
||||||
/* switch to task 2 */
|
/* switch to task 2 */
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ void *Task_2(
|
|||||||
printf( "status = %d\n", status );
|
printf( "status = %d\n", status );
|
||||||
assert( !status );
|
assert( !status );
|
||||||
|
|
||||||
printf( "Task2: exitting\n" );
|
puts( "Task2: exitting" );
|
||||||
|
|
||||||
pthread_exit( NULL );
|
pthread_exit( NULL );
|
||||||
|
|
||||||
/* switch to init task */
|
/* switch to init task */
|
||||||
|
|||||||
Reference in New Issue
Block a user