2003-08-14 Joel Sherrill <joel@OARcorp.com>

* sp02/task1.c: Added ID to name lookup service and changed name of
	id/name translation status code. This propagated to multiple
	functions. The user API service added was rtems_object_id_to_name()
This commit is contained in:
Joel Sherrill
2003-08-14 21:02:00 +00:00
parent f2547306a9
commit 3895f96d8c
4 changed files with 26 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2003-08-14 Joel Sherrill <joel@OARcorp.com>
* sp02/task1.c: Added ID to name lookup service and changed name of
id/name translation status code. This propagated to multiple
functions. The user API service added was rtems_object_id_to_name()
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use rtems-bugs@rtems.com as bug report email address.

View File

@@ -26,6 +26,7 @@ rtems_task Task_1(
rtems_id tid2;
rtems_id tid3;
rtems_status_code status;
rtems_name tid2_name;
rtems_unsigned32 previous_priority;
puts( "TA1 - rtems_task_wake_after - sleep 1 second" );
@@ -37,6 +38,12 @@ rtems_task Task_1(
printf( "TA1 - rtems_task_ident - tid of TA2 (0x%.8x)\n", tid2 );
status = rtems_object_id_to_name( tid2, &tid2_name );
directive_failed( status, "rtems_object_id_to_name of TA2" );
printf( "TA1 - rtems_id_to_name - id -> name of TA2 %sOK\n",
(tid2_name != Task_name[2]) ? "NOT " : "" );
status = rtems_task_ident( Task_name[ 3 ], RTEMS_SEARCH_ALL_NODES, &tid3 );
directive_failed( status, "rtems_task_ident of TA3" );