On 28/7/21 4:27 pm, Sebastian Huber wrote: > On 27/07/2021 10:58, chr...@rtems.org wrote: >> diff --git a/rtemsbsd/rtems/rtems-kernel-thread.c >> b/rtemsbsd/rtems/rtems-kernel-thread.c >> index 3e1e44b9..49ec6df7 100644 >> --- a/rtemsbsd/rtems/rtems-kernel-thread.c >> +++ b/rtemsbsd/rtems/rtems-kernel-thread.c >> @@ -260,6 +260,9 @@ rtems_bsd_thread_start(struct thread **td_ptr, void >> (*func)(void *), void *arg, >> BSD_ASSERT(td != NULL); >> _Thread_Set_name(thread, name); >> +#ifdef KTR >> + strlcpy(td->td_name, name, sizeof(td->td_name)); >> +#endif > > Do we really need this copy and the td_name member? >
I found it useful with the KTR output to have the thread. KTR is a developer/development aid and a good addition to libbsd. Chris _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel