diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-09-05 20:31:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-09-05 20:31:32 +0000 |
commit | 7e230f1032c30a1c3f1bacf449fce8897e901a50 (patch) | |
tree | 42c30e3a1aa33c8e51331a88f1823c43157c94fb /c/src/tests/psxtests/psx05/task2.c | |
parent | nanosleep: negative value for tv_sec is no longer an error. It now (diff) | |
download | rtems-7e230f1032c30a1c3f1bacf449fce8897e901a50.tar.bz2 |
added printf of status when not successful
Diffstat (limited to '')
-rw-r--r-- | c/src/tests/psxtests/psx05/task2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/tests/psxtests/psx05/task2.c b/c/src/tests/psxtests/psx05/task2.c index b931debb0d..87c3f04b70 100644 --- a/c/src/tests/psxtests/psx05/task2.c +++ b/c/src/tests/psxtests/psx05/task2.c @@ -29,8 +29,10 @@ void *Task_2( printf( "Task 2: pthread_mutex_lock unavailable (inherit case)\n" ); status = pthread_mutex_lock( &Mutex2_id ); - printf( "Task 2: mutex acquired\n" ); + if ( status ) + printf( "status =%d\n", status ); assert( !status ); + printf( "Task 2: mutex acquired\n" ); /* switch to init */ |