summaryrefslogtreecommitdiffstats
path: root/c/src/libmisc/rtmonuse
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-08-22 19:17:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-08-22 19:17:54 +0000
commitb57992a382b20f99d33d845be550f8d7290f87d6 (patch)
treedc50040c1da92acc3c6878b0a18d44b4ec897a8a /c/src/libmisc/rtmonuse
parentMoved reentrant wrappers into their own file. (diff)
downloadrtems-b57992a382b20f99d33d845be550f8d7290f87d6.tar.bz2
Removed assert condition when not initialized or there are 0 periods.
Diffstat (limited to 'c/src/libmisc/rtmonuse')
-rw-r--r--c/src/libmisc/rtmonuse/rtmonuse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/libmisc/rtmonuse/rtmonuse.c b/c/src/libmisc/rtmonuse/rtmonuse.c
index 272290176e..843d29468e 100644
--- a/c/src/libmisc/rtmonuse/rtmonuse.c
+++ b/c/src/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" );