diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-12-11 14:18:16 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-12-11 14:18:16 +0000 |
commit | 028e84cf1655487670fca0a2717a435e39c6490a (patch) | |
tree | 21b657e453973c82e5d9f15ac4f4063b16d9e670 /cpukit/libmisc | |
parent | 2003-12-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-028e84cf1655487670fca0a2717a435e39c6490a.tar.bz2 |
2003-12-11 Joel Sherrill <joel@OARcorp.com>
PR 531/rtems_misc
* rtmonuse/rtmonuse.c, stackchk/check.c: Correct indexing.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libmisc/rtmonuse/rtmonuse.c | 2 | ||||
-rw-r--r-- | cpukit/libmisc/stackchk/check.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/libmisc/ChangeLog b/cpukit/libmisc/ChangeLog index 34a174be5b..419d2563e5 100644 --- a/cpukit/libmisc/ChangeLog +++ b/cpukit/libmisc/ChangeLog @@ -1,3 +1,8 @@ +2003-12-11 Joel Sherrill <joel@OARcorp.com> + + PR 531/rtems_misc + * rtmonuse/rtmonuse.c, stackchk/check.c: Correct indexing. + 2003-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * Makefile.am: Add $(dirstamp) to compilation rules. diff --git a/cpukit/libmisc/rtmonuse/rtmonuse.c b/cpukit/libmisc/rtmonuse/rtmonuse.c index 944a6224d4..52c272828d 100644 --- a/cpukit/libmisc/rtmonuse/rtmonuse.c +++ b/cpukit/libmisc/rtmonuse/rtmonuse.c @@ -145,7 +145,7 @@ void Period_usage_Dump( void ) */ for ( i=1 ; - i<_Configuration_Table->RTEMS_api_configuration->maximum_periods ; + i<=_Configuration_Table->RTEMS_api_configuration->maximum_periods ; i++ ) { the_usage = &Period_usage_Information[ i ]; if ( the_usage->count == 0 ) diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index 165b1925a3..88cf1990bd 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -464,7 +464,7 @@ void Stack_check_Dump_threads_usage( if ( info->is_string ) { name = (char *) the_thread->Object.name; } else { - u32_name = *(unsigned32 *)the_thread->Object.name; + u32_name = (unsigned32)the_thread->Object.name; name[ 0 ] = (u32_name >> 24) & 0xff; name[ 1 ] = (u32_name >> 16) & 0xff; name[ 2 ] = (u32_name >> 8) & 0xff; |