Changeset ff91f4e in rtems-schedsim


Ignore:
Timestamp:
May 22, 2014, 9:17:25 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
9372906
Parents:
be883c2
Message:

lookup_task.c: Fix bug where only first four chars of name mattered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedsim/shell/shared/lookup_task.c

    rbe883c2 rff91f4e  
    2424#ifndef RTEMS_IDENT_NAME
    2525  #define RTEMS_IDENT_NAME rtems_task_ident
     26  #define DOING_TASKS
    2627#endif
    2728
     
    3637
    3738  if ( string[0] != '0' ) {
    38     if ( !strcmp( string, "SELF" ) ) {
    39       *id = _Thread_Executing->Object.id;
    40       return 0;
     39    #ifdef DOING_TASKS
     40      if ( !strcmp( string, "SELF" ) ) {
     41        *id = _Thread_Executing->Object.id;
     42        return 0;
     43      }
     44    #endif
     45    if ( strlen( string ) != 4 ) {
     46      return -1;
    4147    }
    4248    memset( name, '\0', sizeof(name) );
Note: See TracChangeset for help on using the changeset viewer.