diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-08-22 19:17:54 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-08-22 19:17:54 +0000 |
commit | b57992a382b20f99d33d845be550f8d7290f87d6 (patch) | |
tree | dc50040c1da92acc3c6878b0a18d44b4ec897a8a /cpukit/libmisc/rtmonuse/rtmonuse.c | |
parent | Moved reentrant wrappers into their own file. (diff) | |
download | rtems-b57992a382b20f99d33d845be550f8d7290f87d6.tar.bz2 |
Removed assert condition when not initialized or there are 0 periods.
Diffstat (limited to 'cpukit/libmisc/rtmonuse/rtmonuse.c')
-rw-r--r-- | cpukit/libmisc/rtmonuse/rtmonuse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/libmisc/rtmonuse/rtmonuse.c b/cpukit/libmisc/rtmonuse/rtmonuse.c index 272290176e..843d29468e 100644 --- a/cpukit/libmisc/rtmonuse/rtmonuse.c +++ b/cpukit/libmisc/rtmonuse/rtmonuse.c @@ -128,6 +128,11 @@ void Period_usage_Dump( void ) unsigned32 u32_name; char name[5]; + if ( !Period_usage_Information ) { + printf( "Period statistics library is not initialized\n" ); + return; + } + printf( "Period information by period\n" ); printf( " ID OWNER PERIODS MISSED CPU TIME WALL TIME\n" ); |