Fixed endian problem in printing object names.

This commit is contained in:
Joel Sherrill
1997-10-21 18:39:27 +00:00
parent a7e2729c61
commit 48220699fd
3 changed files with 15 additions and 0 deletions

View File

@@ -104,8 +104,13 @@ rtems_monitor_dump_name(rtems_name name)
u.ui = (rtems_unsigned32) name;
#if (CPU_BIG_ENDIAN == TRUE)
for (i=0; i<sizeof(u.c); i++)
length += rtems_monitor_dump_char(u.c[i]);
#else
for (i=sizeof(u.c)-1; i ; i++)
length += rtems_monitor_dump_char(u.c[i]);
#endif
return length;
}

View File

@@ -104,8 +104,13 @@ rtems_monitor_dump_name(rtems_name name)
u.ui = (rtems_unsigned32) name;
#if (CPU_BIG_ENDIAN == TRUE)
for (i=0; i<sizeof(u.c); i++)
length += rtems_monitor_dump_char(u.c[i]);
#else
for (i=sizeof(u.c)-1; i ; i++)
length += rtems_monitor_dump_char(u.c[i]);
#endif
return length;
}