Changeset c46ce854 in rtems


Ignore:
Timestamp:
Apr 9, 1997, 8:19:07 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
dfdaf4ac
Parents:
fc7bc51
Message:

printing task names now instead of id numbers

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libmisc/stackchk/check.c

    rfc7bc51 rc46ce854  
    409409  void           *high_water_mark;
    410410  Stack_Control  *stack;
     411  unsigned32      u32_name;
     412  char            name[5];
     413
    411414
    412415  if ( !the_thread )
     
    440443    used = 0;
    441444
    442   printf( "0x%08x  0x%08x  0x%08x  0x%08x   %8d   %8d\n",
     445  if ( the_thread )
     446    u32_name = *(unsigned32 *)the_thread->Object.name;
     447  else
     448    u32_name = rtems_build_name('I', 'N', 'T', 'R');
     449
     450  name[ 0 ] = (u32_name >> 24) & 0xff;
     451  name[ 1 ] = (u32_name >> 16) & 0xff;
     452  name[ 2 ] = (u32_name >>  8) & 0xff;
     453  name[ 3 ] = (u32_name >>  0) & 0xff;
     454  name[ 4 ] = '\0';
     455
     456  printf( "0x%08x  %4s  0x%08x  0x%08x   %8d   %8d\n",
    443457          the_thread ? the_thread->Object.id : ~0,
    444           the_thread ? *(unsigned32 *)the_thread->Object.name :
    445                        rtems_build_name('I', 'N', 'T', 'R'),
     458          name,
    446459          (unsigned32) stack->area,
    447460          (unsigned32) stack->area + (unsigned32) stack->size - 1,
  • c/src/libmisc/stackchk/check.c

    rfc7bc51 rc46ce854  
    409409  void           *high_water_mark;
    410410  Stack_Control  *stack;
     411  unsigned32      u32_name;
     412  char            name[5];
     413
    411414
    412415  if ( !the_thread )
     
    440443    used = 0;
    441444
    442   printf( "0x%08x  0x%08x  0x%08x  0x%08x   %8d   %8d\n",
     445  if ( the_thread )
     446    u32_name = *(unsigned32 *)the_thread->Object.name;
     447  else
     448    u32_name = rtems_build_name('I', 'N', 'T', 'R');
     449
     450  name[ 0 ] = (u32_name >> 24) & 0xff;
     451  name[ 1 ] = (u32_name >> 16) & 0xff;
     452  name[ 2 ] = (u32_name >>  8) & 0xff;
     453  name[ 3 ] = (u32_name >>  0) & 0xff;
     454  name[ 4 ] = '\0';
     455
     456  printf( "0x%08x  %4s  0x%08x  0x%08x   %8d   %8d\n",
    443457          the_thread ? the_thread->Object.id : ~0,
    444           the_thread ? *(unsigned32 *)the_thread->Object.name :
    445                        rtems_build_name('I', 'N', 'T', 'R'),
     458          name,
    446459          (unsigned32) stack->area,
    447460          (unsigned32) stack->area + (unsigned32) stack->size - 1,
  • cpukit/libmisc/stackchk/check.c

    rfc7bc51 rc46ce854  
    409409  void           *high_water_mark;
    410410  Stack_Control  *stack;
     411  unsigned32      u32_name;
     412  char            name[5];
     413
    411414
    412415  if ( !the_thread )
     
    440443    used = 0;
    441444
    442   printf( "0x%08x  0x%08x  0x%08x  0x%08x   %8d   %8d\n",
     445  if ( the_thread )
     446    u32_name = *(unsigned32 *)the_thread->Object.name;
     447  else
     448    u32_name = rtems_build_name('I', 'N', 'T', 'R');
     449
     450  name[ 0 ] = (u32_name >> 24) & 0xff;
     451  name[ 1 ] = (u32_name >> 16) & 0xff;
     452  name[ 2 ] = (u32_name >>  8) & 0xff;
     453  name[ 3 ] = (u32_name >>  0) & 0xff;
     454  name[ 4 ] = '\0';
     455
     456  printf( "0x%08x  %4s  0x%08x  0x%08x   %8d   %8d\n",
    443457          the_thread ? the_thread->Object.id : ~0,
    444           the_thread ? *(unsigned32 *)the_thread->Object.name :
    445                        rtems_build_name('I', 'N', 'T', 'R'),
     458          name,
    446459          (unsigned32) stack->area,
    447460          (unsigned32) stack->area + (unsigned32) stack->size - 1,
Note: See TracChangeset for help on using the changeset viewer.