Changeset 4822069 in rtems


Ignore:
Timestamp:
Oct 21, 1997, 6:39:27 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a18ccfe
Parents:
a7e2729
Message:

Fixed endian problem in printing object names.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libmisc/monitor/mon-prmisc.c

    ra7e2729 r4822069  
    105105    u.ui = (rtems_unsigned32) name;
    106106   
     107#if (CPU_BIG_ENDIAN == TRUE)
    107108    for (i=0; i<sizeof(u.c); i++)
    108109        length += rtems_monitor_dump_char(u.c[i]);
     110#else
     111    for (i=sizeof(u.c)-1; i ; i++)
     112        length += rtems_monitor_dump_char(u.c[i]);
     113#endif
    109114    return length;
    110115}
  • c/src/libmisc/monitor/mon-prmisc.c

    ra7e2729 r4822069  
    105105    u.ui = (rtems_unsigned32) name;
    106106   
     107#if (CPU_BIG_ENDIAN == TRUE)
    107108    for (i=0; i<sizeof(u.c); i++)
    108109        length += rtems_monitor_dump_char(u.c[i]);
     110#else
     111    for (i=sizeof(u.c)-1; i ; i++)
     112        length += rtems_monitor_dump_char(u.c[i]);
     113#endif
    109114    return length;
    110115}
  • cpukit/libmisc/monitor/mon-prmisc.c

    ra7e2729 r4822069  
    105105    u.ui = (rtems_unsigned32) name;
    106106   
     107#if (CPU_BIG_ENDIAN == TRUE)
    107108    for (i=0; i<sizeof(u.c); i++)
    108109        length += rtems_monitor_dump_char(u.c[i]);
     110#else
     111    for (i=sizeof(u.c)-1; i ; i++)
     112        length += rtems_monitor_dump_char(u.c[i]);
     113#endif
    109114    return length;
    110115}
Note: See TracChangeset for help on using the changeset viewer.