>
> > Yes, I tried that also. I can't see the 8 char for multiple
> > RTEMS_RECORD_THREAD_NAME in print_item(). Still, I tried to follow the
> > previously mentioned algorithm.
> >
> >
> https://github.com/rmeena840/rtems-tools/commit/33c217642e36b91926dfd823e5b3b59974790084
>
> The code is more complicated than necessary, but it looks mostly all right.
>
All variables are defined inside if()..else() scope. It can be made easy if
we use global variables. You asked once not to use global variables. So I
did in this way.
>
> Setting
>
> +        cctx->thread_id_name[ item->cpu ].name_index = 0;
>
> if the name_index was 1, is wrong. You have to increment it.
>
Done
https://github.com/rmeena840/rtems-tools/commit/8ceb3ccb97422044fb30b3c562fc736cf0686d48



-- 
*Ravindra Kumar Meena*,
B. Tech. Computer Science and Engineering,
Indian Institute of Technology (Indian School of Mines)
<https://www.iitism.ac.in/>, Dhanbad
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to