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

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Apr 27 11:50:09 UTC 2011


--- Comment #2 from Bob Grimes <rsg at alum.mit.edu> 2011-04-27 06:50:08 CDT ---
(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 $):

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...

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