Skip to content

Commit

Permalink
Fix nasa#1252, set rtems task name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Price committed Sep 22, 2022
1 parent 38559d4 commit aeef62c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/os/rtems/src/os-impl-tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ int32 OS_TaskCreate_Impl(const OS_object_token_t *token, uint32 flags)
return OS_ERROR;
}

status = rtems_object_set_name(impl->id, task->task_name);
if (status != RTEMS_SUCCESSFUL)
{
/* Provide some feedback */
OS_printf("Unable to set task name: %s\n", rtems_status_text(status));
}

/* will place the task in 'ready for scheduling' state */
status = rtems_task_start(impl->id, /*rtems task id*/
(rtems_task_entry)OS_RtemsEntry, /* task entry point */
Expand Down

0 comments on commit aeef62c

Please sign in to comment.