[Bug 1785] Task name not correctly displayed by Capture Engine CLI

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Apr 27 20:48:19 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1785

--- Comment #3 from Joel Sherrill <joel.sherrill at oarcorp.com> 2011-04-27 15:48:17 CDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > I don't remember about 4.9 but for 4.10 you should be able to call
> > rtems_object_get_name() to get a printable version of an object name.  That
> > would be the right thing to do.
> 
> That is what is apparently being done; in rtems_capture_cli_task_list(...),
> around line 269 of $Id: capture-cli.c,v 1.21 2009/01/02 13:01:21 ralf Exp $, I
> see this call to print the task name:
> 
>     rtems_monitor_dump_name (rtems_capture_task_name (task));
> 
> Stepping in with the debugger, in rtems_monitor_dump_name, we see the call to
> the function Joel mentions (around line 96 of $Id: mon-prmisc.c,v 1.22
> 2008/12/18 15:25:27 joel Exp $):
> 
> int
> rtems_monitor_dump_name(rtems_id id)
> {
>     char name_buffer[18];
> 
>     rtems_object_get_name( id, sizeof(name_buffer), name_buffer );  
> 
>     return fprintf( stdout, name_buffer );
> }
> 
> So, there seems to either be a bug in rtems_object_get_name(), or in the id
> variable passed to it from the capture engine...

Can you trace down into score/src/objectgetnameasstring.c and see if you spot
it?  I don't see anything obviously wrong. :(

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list